diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-07 17:12:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-07 17:12:34 +0000 |
commit | f5ca703c2c77c03d7bcebf9327887b8a8d47bde7 (patch) | |
tree | a289907d5d1aa8ab273f295357730794c70a7d7f /Makefile.maint | |
parent | b278b201b5ba72b1bdcd68582020fedf04bfed87 (diff) | |
download | coreutils-f5ca703c2c77c03d7bcebf9327887b8a8d47bde7.tar.gz |
(po-check): Use cvsu, so that a temporary source
file in lib/ or src/ doesn't induce an unwarranted failure.
Add a kludge to filter out the sole generated source file that
also has translatable messages: false.c.
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Makefile.maint b/Makefile.maint index 44359c34b..fd7e1b404 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -220,21 +220,23 @@ m4-check: exit 1; } || : # Verify that all source files using _() are listed in po/POTFILES.in. +# FIXME: don't hard-code src/false.c below; use a more general mechanism. po-check: - if test -f po/POTFILES.in; then \ - grep -E -v '^(#|$$)' po/POTFILES.in | sort > $@-1; \ - files=; \ - for file in lib/*.[chly] src/*.[chly]; do \ - case $$file in \ - *.[ch]) \ - base=`expr " $$file" : ' \(.*\)\..'`; \ - { test -f $$base.l || test -f $$base.y; } && continue;; \ - esac; \ - files="$$files $$file"; \ - done; \ - grep -E -l '\bN?_\([^)"]*("|$$)' $$files | sort > $@-2; \ - diff -u $@-1 $@-2 || exit 1; \ - rm -f $@-1 $@-2; \ + if test -f po/POTFILES.in; then \ + grep -E -v '^(#|$$)' po/POTFILES.in \ + | grep -v '^src/false\.c$$' | sort > $@-1; \ + files=; \ + for file in $$(cvsu --list lib src | grep '\.[chly]$$'); do \ + case $$file in \ + *.[ch]) \ + base=`expr " $$file" : ' \(.*\)\..'`; \ + { test -f $$base.l || test -f $$base.y; } && continue;; \ + esac; \ + files="$$files $$file"; \ + done; \ + grep -E -l '\bN?_\([^)"]*("|$$)' $$files | sort > $@-2; \ + diff -u $@-1 $@-2 || exit 1; \ + rm -f $@-1 $@-2; \ fi # In a definition of #define AUTHORS "... and ..." where the RHS contains |