Changeset View
Changeset View
Standalone View
Standalone View
head/Tools/scripts/sed_checked.sh
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:executable | null | * \ No newline at end of property |
#!/bin/sh | |||||
set -e | |||||
/usr/bin/sed -i.bak "$@" | |||||
for x in "${@}" ; do | |||||
if [ -f "${x}" ]; then | |||||
if cmp -s "${x}" "${x}".bak ; then | |||||
if [ ! -z "${REWARNFILE}" ]; then | |||||
echo sed failed: backup file same as original: ${x#${WRKSRC}/} >> ${REWARNFILE} | |||||
fi | |||||
fi | |||||
fi | |||||
done |