Skip to content

Instantly share code, notes, and snippets.

@niczero
Created December 5, 2017 12:58
Show Gist options
  • Save niczero/451494a8d6eb6f0e3ab619c86fd2d759 to your computer and use it in GitHub Desktop.
Save niczero/451494a8d6eb6f0e3ab619c86fd2d759 to your computer and use it in GitHub Desktop.
Create a cpanfile for BestPractical RT
# make testdeps mistakenly uses system perl
# so we munge it
perl sbin/rt-test-dependencies --with-standalone 2>&1 \
| grep MISSING \
| perl -plE's/^\s+//; my $v = s/\s>=\s(\S+)// ? $1 : undef; s/\s.*$//; $_ = qq{requires \x27$_\x27}; $_ .= qq{ => $v} if $v; $_ .= q{;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment