summaryrefslogtreecommitdiff
path: root/scripts/gendiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gendiff')
-rw-r--r--scripts/gendiff11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/gendiff b/scripts/gendiff
index d9b0c2148..a8cd1209e 100644
--- a/scripts/gendiff
+++ b/scripts/gendiff
@@ -14,11 +14,8 @@ find $1 \( -name "*$2" -o -name ".*$2" \) -print | sort |
while read f; do
U="${GENDIFF_DIFF_ARGS}"
[ "`basename $f`" = "ChangeLog$2" ] && U="${GENDIFF_DIFF_CHANGELOG_ARGS}"
- diffcmd="${DIFF} ${U} /dev/null ${f%$2}"
-# ${DIFF} ${U} $f `echo $f | sed s/$2\$//`
- if [ -r "$f" ]; then
- diffcmd="${DIFF} ${U} ${f} ${f%$2}"
- fi
- echo "${diffcmd}"
- ${diffcmd}
+ F=/dev/null
+ [ -r "${f}" ] && F="${f}"
+ echo "${DIFF} ${U} ${F} ${f%$2}"
+ ${DIFF} ${U} "${F}" "${f%$2}"
done