bin/setup-cpan-faves

Tue, 12 Nov 2019 16:23:27 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 12 Nov 2019 16:23:27 -0600
changeset 819
58f9d9741852
parent 816
f058603b86b6
child 956
61c91bec34c8
permissions
-rwxr-xr-x

actually run cpm to make sure it's not a stub

#!/bin/bash
set -eu -o pipefail

dists=(
  App::cpm

  Perl::Tidy
  Pod::Cpandoc

  experimentals

  Reply
  Data::Printer
  Data::Printer::Filter::JSON
  Data::Printer::Filter::URI
  Carp::Always
  B::Keywords
  Term::ReadLine::Gnu
  Class::Refresh
  Pry

  Path::Tiny
  Getopt::Long::Descriptive
)

if ! (command -v cpm && cpm -V) &>/dev/null; then
  curl -fsSL --compressed https://git.io/cpm |
    perl - install -g App::cpm

  plenv rehash || :
fi

cpm install -g "${dists[@]}"

plenv rehash || :

mercurial