Skip to content

Instantly share code, notes, and snippets.

@jonasbn
Created August 14, 2014 12:28
Show Gist options
  • Save jonasbn/c7aa8000955bd1eea762 to your computer and use it in GitHub Desktop.
Save jonasbn/c7aa8000955bd1eea762 to your computer and use it in GitHub Desktop.
Build a cpanfile file from Module::Build requirements specified in Build.PL
#!/bin/bash
./Build prereq_report | perl -pi -e 'm/([\w:]+)\s+([\d\.]+)\s+/; if ($1) { print STDERR "requires '\''$1'\''"; print STDERR ", '\''$2'\''" if $2; print STDERR ";\n" }' > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment