forked from lix-project/lix
* Commit old changed to bdiff.sh - but bdiff.sh is obsolete.
This commit is contained in:
parent
77970f8daf
commit
f4041cc175
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
#DIFF=/home/eelco/Dev/nix/zdelta-2.1/zdc
|
#DIFF=zdc
|
||||||
DIFF=/home/eelco/Dev/nix/bsdiff-4.2/bsdiff
|
DIFF=bsdiff
|
||||||
|
|
||||||
srcA=$1
|
srcA=$1
|
||||||
srcB=$2
|
srcB=$2
|
||||||
|
@ -15,6 +15,12 @@ fi
|
||||||
|
|
||||||
if test -f "$srcA/$fn"; then
|
if test -f "$srcA/$fn"; then
|
||||||
|
|
||||||
|
if ! test -f "$srcB/$fn"; then
|
||||||
|
echo "DELETE $fn"
|
||||||
|
else
|
||||||
|
|
||||||
|
if ! cmp "$srcA/$fn" "$srcB/$fn" > /dev/null; then
|
||||||
|
|
||||||
echo "FILE DELTA FOR $fn"
|
echo "FILE DELTA FOR $fn"
|
||||||
|
|
||||||
TMPFILE=/tmp/__bsdiff
|
TMPFILE=/tmp/__bsdiff
|
||||||
|
@ -36,6 +42,12 @@ fi
|
||||||
|
|
||||||
rm $TMPFILE
|
rm $TMPFILE
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Note: be silent about unchanged files.
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
echo "NEW FILE $fn"
|
echo "NEW FILE $fn"
|
||||||
|
|
Loading…
Reference in a new issue