pidgin.next.minor: 767e2776: Add a commit-check target. The idea is ...
rlaager at pidgin.im
rlaager at pidgin.im
Sun Nov 2 17:00:40 EST 2008
-----------------------------------------------------------------
Revision: 767e27764fc328b2768ea7715850c1d81899c059
Ancestor: 84461a44ffa2c1e7ab026455c5463a9763f64a9d
Author: rlaager at pidgin.im
Date: 2008-11-02T21:24:23
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/767e27764fc328b2768ea7715850c1d81899c059
Modified files:
Makefile.am
ChangeLog:
Add a commit-check target. The idea is you could use this in a pre-commit
hook. Currently, it just checks that the POTFILES.in and POTFILES.skip
files are up-to-date and properly sorted. (This target is also called by
version-check, so we'll be sure it runs at least once before a release.)
-------------- next part --------------
============================================================
--- Makefile.am bdecddf1c85f6601f53c36afbd8b242e725e8cc1
+++ Makefile.am b234db231f3ce0eeb55e05e72a4959b6f1eb0855
@@ -30,7 +30,12 @@ distcheck-hook: libpurple/plugins/perl/c
distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm
# cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
-version-check:
+commit-check:
+ (cd po ; intltool-update -m 2>&1 | grep -v '^mismatched quotes.*\.py$$' | sed "s|current directory|po directory|" | grep . ; if [ $$? = 0 ] ; then exit 1 ; else exit 0 ; fi)
+ LC_ALL=C sort -c -t/ -u po/POTFILES.in
+ LC_ALL=C sort -c -t/ -u po/POTFILES.skip
+
+version-check: commit-check
# We don't want to release development versions.
test x`echo $(PACKAGE_VERSION) | grep dev` = x
More information about the Commits
mailing list