[maker-devel] maker installation TIP
Cook, Malcolm
MEC at stowers.org
Fri Apr 24 10:11:32 MDT 2009
Fellow makers,
During installation of maker, I stream edited all the `maker` perl scripts so the #!shbang line contrives to pick-up perl from my PATH, rather than using the hard-coded /usr/bin/perl (or /usr/local/bin/perl).
I wanted this because I have a site-wide perl installation that already has all the perl dependencies installed (BIoPerl, etc)
Here is my linux one-liner to do this, in case you want to fix up your #!shbang lines similarly:
find ./ -type f -execdir sh -c '[[ `file $0` =~ ".perl." ]]' {} \; -print0 | xargs -0 perl -p -i -e '$_="#!/usr/bin/env perl\nuse warnings;\n\n#OLD SHBANG:\n$_#END OF OLD SHBANG\n" if 1 == $.; close ARGV if eof;'
--Malcolm Cook
More information about the maker-devel
mailing list