Ignore files that only differ in CVS Id tag.
MFC after: 2 weeks
This commit is contained in:
parent
8037791bf7
commit
ed61c72f45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184781
@ -947,6 +947,20 @@ for COMPFILE in `find . -type f -size +0`; do
|
||||
echo " *** Temp ${COMPFILE} and installed have the same CVS Id, deleting"
|
||||
rm "${COMPFILE}"
|
||||
;;
|
||||
|
||||
*)
|
||||
tempfoo=`basename $0`
|
||||
TMPFILE1=`mktemp -t ${tempfoo}` || break
|
||||
TMPFILE2=`mktemp -t ${tempfoo}` || break
|
||||
sed "s/[$]${CVS_ID_TAG}:.*[$]//g" "${DESTDIR}${COMPFILE#.}" > "${TMPFILE1}"
|
||||
sed "s/[$]${CVS_ID_TAG}:.*[$]//g" "${COMPFILE}" > "${TMPFILE2}"
|
||||
if diff -q ${DIFF_OPTIONS} "${TMPFILE1}" "${TMPFILE2}" > \
|
||||
/dev/null 2>&1; then
|
||||
echo " *** Temp ${COMPFILE} and installed are the same except CVS Id, deleting"
|
||||
rm "${COMPFILE}"
|
||||
fi
|
||||
rm -f "${TMPFILE1}" "${TMPFILE2}"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user