: # -*- perl -*- eval 'exec perl -wS $0 ${1+"$@"}' if 0; # create setup self extracting script if( $#ARGV < 2 ) { print < : the start shell script, located next to this perl script : the library file, that is included into the shell script : the target shellscript ENDHELP exit; } $infile = $ARGV[0]; $library = $ARGV[1]; $outfile = $ARGV[2]; $infile =~ tr/[A-Z]/[a-z]/; # read script header open( SCRIPT, "<$infile" ) || die "cannot open $infile"; open( OUTFILE, ">$outfile$$.tmp" ) || die "cannot open $outfile"; @scriptlines =