Skip to content

Instantly share code, notes, and snippets.

@tyru
Forked from uasi/fastpack.sh
Created March 19, 2011 15:47
Show Gist options
  • Select an option

  • Save tyru/877557 to your computer and use it in GitHub Desktop.

Select an option

Save tyru/877557 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# fastpack - a simple App::FatPacker helper
#
if [ -z "$1" ]; then
echo "usage: fastpack script.pl > script.packed.pl"
exit 0
fi
fatpack trace "$1"
fatpack packlists-for `cat fatpacker.trace` > fatpacker.packlists
fatpack tree `cat fatpacker.packlists`
[ -d lib ] || mkdir lib
echo "#!/usr/bin/env perl"
echo
fatpack file
cat "$1"
rm -rf fatlib fatpacker.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment