diff options
author | Paul Smith <psmith@gnu.org> | 2002-07-08 13:05:02 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-07-08 13:05:02 +0000 |
commit | 724925be2b9a48f7911ee6baa315b872bd86995c (patch) | |
tree | cc19b7c671850891cdc4ebde9d33dd897de3a1d2 /maintMakefile | |
parent | 2f20fc1cc71e0b59e2cd859e927fea6115a30f76 (diff) | |
download | gunmake-724925be2b9a48f7911ee6baa315b872bd86995c.tar.gz |
Various cleanups reported by people using the alpha release.
Incorporate "order-only" prerequisites patch. Wrote a test for it.
The test shows what might be a bug in the code; I need to look at it
more closely (anyway it doesn't behave as I expected). Also I haven't
done the docs yet.
Diffstat (limited to 'maintMakefile')
-rw-r--r-- | maintMakefile | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/maintMakefile b/maintMakefile index a499972..1910674 100644 --- a/maintMakefile +++ b/maintMakefile @@ -189,4 +189,34 @@ cvs-update: $(cvs-targets) # --------------------- # .PHONY: update -update: wget-update cvs-update po-update +update: wget-update po-update + +# cvs-update + + +## --------------- ## +## Sanity checks. ## +## --------------- ## + +# Checks that don't require cvs. Run `changelog-check' last as +# previous test may reveal problems requiring new ChangeLog entries. +local-check: po-check changelog-check + +# copyright-check writable-files + +changelog-check: + if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \ + :; \ + else \ + echo "$(VERSION) not in ChangeLog" 1>&2; \ + exit 1; \ + fi + +# Verify that all source files using _() are listed in po/POTFILES.in. +po-check: + if test -f po/POTFILES.in; then \ + grep -E -v '^(#|$$)' po/POTFILES.in | sort > $@-1; \ + grep -E -l '\b_\(' lib/*.c src/*.c | sort > $@-2; \ + diff -u $@-1 $@-2 || exit 1; \ + rm -f $@-1 $@-2; \ + fi |