bin/setup-cpan-faves

Fri, 15 Nov 2019 23:03:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Nov 2019 23:03:46 -0500
changeset 823
da66fb550c74
parent 819
58f9d9741852
child 956
61c91bec34c8
permissions
-rwxr-xr-x

clean up

786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
1 #!/bin/bash
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
2 set -eu -o pipefail
249
5bba2e094584 Move helper scripts into bin with common names
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
4 dists=(
816
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
5 App::cpm
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
6
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
7 Perl::Tidy
695
Meredith Howard <mhoward@roomag.org>
parents: 694
diff changeset
8 Pod::Cpandoc
308
2565964f2b50 Add perltidy
Meredith Howard <mhoward@roomag.org>
parents: 274
diff changeset
9
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
10 experimentals
255
9e96941c5dba add experimentals
Meredith Howard <mhoward@roomag.org>
parents: 249
diff changeset
11
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
12 Reply
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
13 Data::Printer
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
14 Data::Printer::Filter::JSON
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
15 Data::Printer::Filter::URI
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
16 Carp::Always
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
17 B::Keywords
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
18 Term::ReadLine::Gnu
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
19 Class::Refresh
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
20 Pry
249
5bba2e094584 Move helper scripts into bin with common names
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
22 Path::Tiny
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
23 Getopt::Long::Descriptive
786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
24 )
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
25
819
58f9d9741852 actually run cpm to make sure it's not a stub
Meredith Howard <mhoward@roomag.org>
parents: 816
diff changeset
26 if ! (command -v cpm && cpm -V) &>/dev/null; then
816
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
27 curl -fsSL --compressed https://git.io/cpm |
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
28 perl - install -g App::cpm
786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
29
816
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
30 plenv rehash || :
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
31 fi
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
32
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
33 cpm install -g "${dists[@]}"
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
34
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
35 plenv rehash || :

mercurial