bin/setup-cpan-faves

changeset 816
f058603b86b6
parent 786
63160e727e37
child 819
58f9d9741852
equal deleted inserted replaced
815:478ee3262dce 816:f058603b86b6
1 #!/bin/bash 1 #!/bin/bash
2 set -eu -o pipefail 2 set -eu -o pipefail
3 3
4 dists=( 4 dists=(
5 App::cpm
6
5 Perl::Tidy 7 Perl::Tidy
6 Pod::Cpandoc 8 Pod::Cpandoc
7 9
8 experimentals 10 experimentals
9 11
19 21
20 Path::Tiny 22 Path::Tiny
21 Getopt::Long::Descriptive 23 Getopt::Long::Descriptive
22 ) 24 )
23 25
24 command -v cpm &>/dev/null || 26 if ! command -v cpm &>/dev/null; then
25 cpanm App::cpm 27 curl -fsSL --compressed https://git.io/cpm |
28 perl - install -g App::cpm
26 29
27 exec cpm install -g "${dists[@]}" 30 plenv rehash || :
31 fi
32
33 cpm install -g "${dists[@]}"
34
35 plenv rehash || :

mercurial