diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2007-05-17 11:06:55 +0100 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2007-05-17 11:06:55 +0100 |
commit | b73bea14786fe8f6d7dc2457b51730d939e4eec4 (patch) | |
tree | 9884f2a2cefc4980289d6f66e62d3688d492dba8 /scripts/gendiff | |
parent | de2e849ede59f1b3deec085676126d912011c052 (diff) | |
download | librpm-tizen-b73bea14786fe8f6d7dc2457b51730d939e4eec4.tar.gz librpm-tizen-b73bea14786fe8f6d7dc2457b51730d939e4eec4.tar.bz2 librpm-tizen-b73bea14786fe8f6d7dc2457b51730d939e4eec4.zip |
Emit diff headers (#237561)
Patch derived from Ville Skytta
Diffstat (limited to 'scripts/gendiff')
-rw-r--r-- | scripts/gendiff | 7 |
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 |