# HG changeset patch # User Meredith Howard # Date 1568141757 18000 # Node ID 63160e727e371124e16310d99febb1e410bf6183 # Parent 9bd25468c38283a70ab8042a7140b71cb0a974d7 lets use cpm diff --git a/bin/setup-cpan-faves b/bin/setup-cpan-faves --- a/bin/setup-cpan-faves +++ b/bin/setup-cpan-faves @@ -1,11 +1,7 @@ -#!/usr/bin/env perl -use warnings; -use strict; +#!/bin/bash +set -eu -o pipefail -exec cpanm => -nq => qw( - App::cpanminus - Carton - +dists=( Perl::Tidy Pod::Cpandoc @@ -23,4 +19,9 @@ exec cpanm => -nq => qw( Path::Tiny Getopt::Long::Descriptive -); +) + +command -v cpm &>/dev/null || + cpanm App::cpm + +exec cpm install -g "${dists[@]}"