ignore Id lines in comparison

This commit is contained in:
Paul Mackerras 1996-07-01 05:30:36 +00:00
parent 4d5401a1de
commit 874f1c70ee

View File

@ -28,7 +28,7 @@ for f in net/if_ppp.h net/ppp-comp.h net/ppp_defs.h $SRC/bsd-comp.c \
$SRC/slcompress.c $SRC/slcompress.h common/zlib.c common/zlib.h; do
dest=$SYS/net/$(basename $f)
if [ -f $dest ]; then
if ! cmp -s $f $dest; then
if ! diff -qBI '[ ]\$[IN][de].*:.*\$' $f $dest >/dev/null; then
echo "Copying $f to $dest"
mv -f $dest $dest.orig && echo " (old version saved in $dest.orig)"
cp $f $dest