version 1.1, 2003/07/31 07:33:55 |
version 1.2, 2003/07/31 08:10:35 |
|
|
# |
# |
|
|
# The number of lines plus one in the on-the-fly decompression script |
# The number of lines plus one in the on-the-fly decompression script |
lines=18 |
lines=19 |
|
|
# A simple string to recognize already compressed files |
# A simple string to recognize already compressed files |
magic="# compressed by gzexe" |
magic="# compressed by gzexe" |
|
|
/bin/echo "$prog: cannot create tmp dir"; exit 1 |
/bin/echo "$prog: cannot create tmp dir"; exit 1 |
} |
} |
trap '/bin/rm -rf "$tmp"' 0 |
trap '/bin/rm -rf "$tmp"' 0 |
if /usr/bin/tail +$lines "$0" | /usr/bin/gzip -dc > "$tmp/$prog" 2> /dev/null; then |
if /usr/bin/tail +$lines "$0" | |
|
/usr/bin/gzip -dc > "$tmp/$prog" 2> /dev/null; then |
/bin/chmod u+x "$tmp/$prog" |
/bin/chmod u+x "$tmp/$prog" |
"$tmp/$prog" ${1+"$@"} |
"$tmp/$prog" ${1+"$@"} |
ret=$? |
ret=$? |