[Gnucash-changes] r13065 - gnucash/trunk - Fail 'make distcheck' if POTFILES.in contains undistributed files.

Chris Shoemaker chris at cvs.gnucash.org
Wed Feb 1 15:30:15 EST 2006


Author: chris
Date: 2006-02-01 15:30:14 -0500 (Wed, 01 Feb 2006)
New Revision: 13065
Trac: http://svn.gnucash.org/trac/changeset/13065

Modified:
   gnucash/trunk/Makefile.am
Log:
   Fail 'make distcheck' if POTFILES.in contains undistributed files.
   The failure will also helpfully explain which files are the problem.


Modified: gnucash/trunk/Makefile.am
===================================================================
--- gnucash/trunk/Makefile.am	2006-01-31 21:04:22 UTC (rev 13064)
+++ gnucash/trunk/Makefile.am	2006-02-01 20:30:14 UTC (rev 13065)
@@ -152,7 +152,15 @@
 
 dist-hook: po/POTFILES.in
 
-distcheck-hook: po/POTFILES.in
+distcheck-hook:
+	@e=''; \
+	for X in `grep -v \# ${distdir}/po/POTFILES.in` ; do \
+		if [ ! -f ${distdir}/$$X ] ; then \
+			echo $$X " is in POTFILES.in but not in the dist."; \
+			e='yes'; \
+		fi; \
+	done; \
+	if test "$$e" = "yes" ; then exit 1; fi;
 
 distclean-local:
 



More information about the gnucash-changes mailing list