bin/setup-cpan-faves

changeset 956
61c91bec34c8
parent 819
58f9d9741852
child 970
498189926551
equal deleted inserted replaced
955:54192edeb4e5 956:61c91bec34c8
1 #!/bin/bash 1 #!/bin/bash
2 set -eu -o pipefail 2 set -euo pipefail
3 3
4 dists=( 4 dists=(
5 App::cpanminus
5 App::cpm 6 App::cpm
6 7
7 Perl::Tidy 8 Perl::Tidy
8 Pod::Cpandoc 9 Pod::Cpandoc
9 10
22 Path::Tiny 23 Path::Tiny
23 Getopt::Long::Descriptive 24 Getopt::Long::Descriptive
24 ) 25 )
25 26
26 if ! (command -v cpm && cpm -V) &>/dev/null; then 27 if ! (command -v cpm && cpm -V) &>/dev/null; then
27 curl -fsSL --compressed https://git.io/cpm | 28 cpm() {
28 perl - install -g App::cpm 29 curl -fsSL --compressed https://git.io/cpm | perl - $@
29 30 }
30 plenv rehash || :
31 fi 31 fi
32 32
33 cpm install -g "${dists[@]}" 33 cpm install -g "${dists[@]}"
34 34
35 plenv rehash || : 35 plenv rehash || :

mercurial