From: Jim Meyering Date: Sat, 28 Oct 2006 16:23:30 +0000 (+0200) Subject: * Makefile.maint (patch-check): Make it easier to regenerate X-Git-Tag: COREUTILS-6_5~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e24ce7c58d2355b720b523f0bde6e0d2c47cbe68;p=thirdparty%2Fcoreutils.git * Makefile.maint (patch-check): Make it easier to regenerate the src/c99-to-c89.diff file. E.g., I do this: make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff --- diff --git a/ChangeLog b/ChangeLog index 5f42956fd7..0a1dcef892 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-10-28 Jim Meyering + * Makefile.maint (patch-check): Make it easier to regenerate + the src/c99-to-c89.diff file. E.g., I do this: + make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff + * src/c99-to-c89.diff: Update to reflect new offsets in rm.c. 2006-10-26 Jim Meyering diff --git a/Makefile.maint b/Makefile.maint index df412f64cc..d89e0d6e86 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -330,6 +330,8 @@ patch-check: (cd src-c89; patch -V never --fuzz=0) < src/c99-to-c89.diff \ > $@.1 2>&1 grep -v '^patching file ' $@.1 > $@.2 || : + if test "$${REGEN_PATCH+set}" = set; then \ + diff -upr src src-c89 > new-diff || : ; fi fail=0; test -s $@.2 && fail=1 || : ; \ rm -rf src-c89 $@.1 $@.2; \ test $$fail = 0