#!/bin/sh -- # -*- perl -*- eval 'exec /bin/perl -S $0 ${1+"$@"}' if 0; #### #!/bin/perl #### #!/bin/sh ## this is the wrapper file: /perl-5.8.8/bin/perl die () { echo "ERROR: $1"; exit 1; } tool=`/usr/bin/basename $0` perlroot=/tools/perl-5.8.8 arch=`/usr/bin/mach`; ## try to exec the perl binary exe=$perlroot/$arch/bin/$tool if [ -x $exe ]; then eval 'exec $exe ${1+"$@"}' else die "Couldn't find $tool executable: \"$exe\"."; fi