From: Paul Nasrat Date: Thu, 17 May 2007 10:06:55 +0000 (+0100) Subject: Emit diff headers (#237561) X-Git-Tag: tznext/4.11.0.1.tizen20130304~5981 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b73bea14786fe8f6d7dc2457b51730d939e4eec4;p=tools%2Flibrpm-tizen.git Emit diff headers (#237561) Patch derived from Ville Skytta --- diff --git a/scripts/gendiff b/scripts/gendiff index 24068cc..342d3aa 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