From 53b5dc8ef725b56235d4717dc1459913c7e968ee Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Wed, 1 Feb 2006 20:30:14 +0000 Subject: [PATCH] Fail 'make distcheck' if POTFILES.in contains undistributed files. The failure will also helpfully explain which files are the problem. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13065 57a11ea4-9604-0410-9ed3-97b8803252fd --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 561dd17e8c..fcf578f29f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -152,7 +152,15 @@ distcleancheck_listfiles = \ 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: