[BACK]Return to gzexe CVS log [TXT][DIR] Up to [local] / src / usr.bin / compress

Diff for /src/usr.bin/compress/gzexe between version 1.1 and 1.2

version 1.1, 2003/07/31 07:33:55 version 1.2, 2003/07/31 08:10:35
Line 18 
Line 18 
 #  #
   
 # 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"
Line 38 
Line 38 
                         /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=$?

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2