diff options
author | Paul Eggert <eggert@penguin.cs.ucla.edu> | 2006-11-27 11:27:46 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-11-27 11:27:46 +0100 |
commit | 9b06af3367500dfe09067b047381e788969059cd (patch) | |
tree | 0b4858e328a2c8ceabf60d95fdfa0cc016faf5d4 /Makefile.maint | |
parent | a45772d52d86a2b1a39ee057b139af7eb36a2b76 (diff) | |
download | coreutils-9b06af3367500dfe09067b047381e788969059cd.tar.xz |
Improve the check for departures from C89, and fix the departures
I found.
* Makefile.maint (my-distcheck): Also check for C89 compatibility
as best we can with GCC.
* src/stat.c (PRINTF_OPTION): Omit comma before } in enum
declaration; C89 doesn't allow this.
* src/dcgen: Don't generate string literals longer than
what C89 requires support for.
* src/cut.c (usage): Don't use string literals longer than
what C89 requires support for.
* src/date.c (usage): Likewise.
* src/dd.c (usage): Likewise.
* src/du.c (usage): Likewise.
* src/ls.c (usage): Likewise.
* src/od.c (usage): Likewise.
* src/readlink.c (usage): Likewise.
* src/seq.c (usage): Likewise.
* src/shred.c (usage): Likewise.
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint index 9400b4993..821a53c68 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -335,7 +335,7 @@ patch-check: diff -upr src src-c89 > new-diff || : ; fi fail=0; test -s $@.2 && fail=1 || : ; \ rm -f src-c89/*.o || fail=1; \ - $(MAKE) -C src-c89 CFLAGS='-g -Wdeclaration-after-statement -Werror' \ + $(MAKE) -C src-c89 CFLAGS='-Wdeclaration-after-statement -Werror' \ || fail=1; \ rm -rf src-c89 $@.1 $@.2; \ test $$fail = 0 @@ -528,6 +528,11 @@ my-distcheck: $(local-check) $(release_archive_dir)/$(prev-tgz) (cd $(t) && mv $(distdir) $(distdir).old \ && $(AMTAR) -zxf - ) < $(distdir).tar.gz diff -ur $(t)/$(distdir).old $(t)/$(distdir) + cd $(t)/$(distdir) \ + && (cd src && patch -V never --fuzz=0 <c99-to-c89.diff) \ + && ./configure --disable-largefile \ + CFLAGS='-Werror -ansi -pedantic -Wno-long-long' \ + && $(MAKE) -rm -rf $(t) @echo "========================"; \ echo "$(distdir).tar.gz is ready for distribution"; \ |