|
@ -3,7 +3,7 @@ |
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
# |
|
|
# |
|
|
# Filename: lib/sde-package/patch-cksum.sh |
|
|
# Filename: lib/sde-package/patch-cksum.sh |
|
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
|
|
|
|
|
|
|
# Copyright (C) 2006 - 2011 The OpenSDE Project |
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
# |
|
|
# |
|
@ -64,7 +64,9 @@ cksum_file() { |
|
|
return -1 |
|
|
return -1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
cp $1 /tmp/$$ |
|
|
|
|
|
|
|
|
local tmpdir="tmp/patch-cksum" |
|
|
|
|
|
mkdir -p $tmpdir |
|
|
|
|
|
cp $1 $tmpdir/$$ |
|
|
eval "egrep -v '^#' $1 | $has_D" | while read cksum file url args; do |
|
|
eval "egrep -v '^#' $1 | $has_D" | while read cksum file url args; do |
|
|
[ "$cksum" = 'X' ] && continue |
|
|
[ "$cksum" = 'X' ] && continue |
|
|
[ "$cksum" != '0' -a "$override" = '0' ] && continue |
|
|
[ "$cksum" != '0' -a "$override" = '0' ] && continue |
|
@ -85,11 +87,11 @@ cksum_file() { |
|
|
echo "!!! Checksum of $file changed (was $cksum)." >&2 |
|
|
echo "!!! Checksum of $file changed (was $cksum)." >&2 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
eval "sed \"$sedscript\" -i /tmp/$$" |
|
|
|
|
|
|
|
|
eval "sed \"$sedscript\" -i $tmpdir/$$" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
diff -u ./$1 /tmp/$$ |
|
|
|
|
|
rm -f /tmp/$$ |
|
|
|
|
|
|
|
|
diff -u ./$1 ./$tmpdir/$$ |
|
|
|
|
|
rm -f $tmpdir/$$ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for f in $files; do |
|
|
for f in $files; do |
|
|