# HG changeset patch # User Meredith Howard # Date 1572562092 18000 # Node ID f058603b86b6a693b5a7dcba6b76af43d54b1108 # Parent 478ee3262dce824c7ae2d19a7a0be23e81694aaa bootstrap cpm and keep cpm updated, and plenv shims diff --git a/bin/setup-cpan-faves b/bin/setup-cpan-faves --- a/bin/setup-cpan-faves +++ b/bin/setup-cpan-faves @@ -2,6 +2,8 @@ set -eu -o pipefail dists=( + App::cpm + Perl::Tidy Pod::Cpandoc @@ -21,7 +23,13 @@ dists=( Getopt::Long::Descriptive ) -command -v cpm &>/dev/null || - cpanm App::cpm +if ! command -v cpm &>/dev/null; then + curl -fsSL --compressed https://git.io/cpm | + perl - install -g App::cpm -exec cpm install -g "${dists[@]}" + plenv rehash || : +fi + +cpm install -g "${dists[@]}" + +plenv rehash || :