summaryrefslogtreecommitdiff
path: root/gendiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-12-16 19:00:30 +0000
committerjbj <devnull@localhost>2000-12-16 19:00:30 +0000
commitf7c8cb86898a47f396a7f3ee0d5fcba1de328a56 (patch)
treee9af530872b79d688f9492579ab4f453b217d45f /gendiff
parent92c9e1fc77e3b8dd523bc34323bf377b719e94b5 (diff)
downloadrpm-f7c8cb86898a47f396a7f3ee0d5fcba1de328a56.tar.gz
rpm-f7c8cb86898a47f396a7f3ee0d5fcba1de328a56.tar.bz2
rpm-f7c8cb86898a47f396a7f3ee0d5fcba1de328a56.zip
- gendiff: generate ChangeLog patches more intelligently (#22356).
CVS patchset: 4348 CVS date: 2000/12/16 19:00:30
Diffstat (limited to 'gendiff')
-rw-r--r--gendiff4
1 files changed, 3 insertions, 1 deletions
diff --git a/gendiff b/gendiff
index 1ec2d0109..1a153b795 100644
--- a/gendiff
+++ b/gendiff
@@ -8,5 +8,7 @@
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
- diff -u $f `echo $f | sed s/$2\$//`
+ U=-u
+ [ "${f##*/}" == "ChangeLog$2" ] && U=-U0
+ diff ${U} $f `echo $f | sed s/$2\$//`
done