mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
14 lines
322 B
Bash
14 lines
322 B
Bash
#!/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 - - REINPLACE_CMD ran, but did not modify file contents: ${x#${WRKSRC}/} >> ${REWARNFILE}
|
|
fi
|
|
fi
|
|
fi
|
|
done
|