source:
patches/bzip2-1.0.3-remove_tempfile-1.patch@
3b72a1e
Last change on this file since 3b72a1e was 69cde8d, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.7 KB |
-
bzip2-1.0.3/bzdiff
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2006-02-19 Initial Package Version: 1.0.3 Origin: Jim Gifford Upstream Status: Sent Description: Removes Dependency of tempfile
old new 37 37 echo "Usage: $prog [${comp}_options] file [file]" 38 38 exit 1 39 39 fi 40 tmp=`tempfile -d /tmp -p bz` || {41 echo 'cannot create a temporary file' >&242 exit 143 }44 40 set $FILES 45 41 if test $# -eq 1; then 46 42 FILE=`echo "$1" | sed 's/.bz2$//'` … … 53 49 case "$2" in 54 50 *.bz2) 55 51 F=`echo "$2" | sed 's|.*/||;s|.bz2$||'` 56 bzip2 -cdfq "$2" > $tmp57 bzip2 -cdfq "$1" | $comp $OPTIONS - $tmp52 bzip2 -cdfq "$2" > /tmp/"$F".$$ 53 bzip2 -cdfq "$1" | $comp $OPTIONS - /tmp/"$F".$$ | sed -e "s|Files - and /tmp/"$F".$$|Files $1 and $2|g" 58 54 STAT="$?" 59 /bin/rm -f $tmp;;55 /bin/rm -f /tmp/"$F".$$;; 60 56 61 *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2" 57 *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2" | sed -e "s|Files - and /tmp/"$F".$$|Files $1 and $2|g" 62 58 STAT="$?";; 63 59 esac;; 64 60 *) case "$2" in 65 61 *.bz2) 66 62 bzip2 -cdfq "$2" | $comp $OPTIONS "$1" - 67 63 STAT="$?";; 68 *) $comp $OPTIONS "$1" "$2" 64 *) $comp $OPTIONS "$1" "$2" | sed -e "s|Files - and /tmp/"$F".$$|Files $1 and $2|g" 65 69 66 STAT="$?";; 70 67 esac;; 71 68 esac
Note:
See TracBrowser
for help on using the repository browser.