You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
465 B

Index: bzdiff
--- bzdiff.orig 2007-01-05 20:55:31 +0100
+++ bzdiff 2007-01-05 20:57:56 +0100
@@ -37,10 +37,15 @@
echo "Usage: $prog [${comp}_options] file [file]"
exit 1
fi
+if type mktemp >/dev/null 2>&1; then
tmp=`mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
echo 'cannot create a temporary file' >&2
exit 1
}
+else
+ set -C
+ tmp=${TMPDIR-/tmp}/bzdiff.$$
+fi
set $FILES
if test $# -eq 1; then
FILE=`echo "$1" | sed 's/.bz2$//'`