summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/gendiff7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/gendiff b/scripts/gendiff
index 24068cc68..342d3aa7a 100644
--- a/scripts/gendiff
+++ b/scripts/gendiff
@@ -14,10 +14,11 @@ find $1 \( -name "*$2" -o -name ".*$2" \) -print |
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
- ${DIFF} ${U} "${f}" "${f%$2}"
- else
- ${DIFF} ${U} /dev/null "${f%$2}"
+ diffcmd="${DIFF} ${U} ${f} ${f%$2}"
fi
+ echo "${diffcmd}"
+ ${diffcmd}
done