4 EXTRA_DIST = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in \
5 THANKS config.rpath import-gnulib.sh import-gnulib.config
6 # "tests" is the gnulib unit test dir.
7 SUBDIRS = gnulib tests lib find xargs locate doc po m4
9 ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4
11 # CONFIG_CLEAN_FILES = gnulib/lib/regex.c
14 # DISTCLEANFILES = intl/libintl.h
17 ## regex.c seems to get left out if I use automake-1.9 but not
18 ## if I use automake-1.7. Hence dist-hook has to be able to
19 ## copy regex.c into the relevant (read-only) directory if it
20 ## is not already there, but needs to avoid doing so if the
21 ## file is already in place. Ugh.
22 ## -- James Youngman <jay@gnu.org>
24 dist-hook: jy-regex-fix findutils-check-pofiles findutils-check-testfiles
27 if test -f $(distdir)/gnulib/lib/regex.c ; then \
28 echo regex.c is already in place. Great. ; \
30 echo Making $(distdir)/gnulib/lib writable ... ; \
31 chmod +w $(distdir)/gnulib/lib ; \
32 echo Copying $(srcdir)/gnulib/lib/regex.c to $(distdir)/gnulib/lib ; \
33 cp $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib/regex.c ; \
35 # ls -ld $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib
37 ## Check that we actually shipped all the .po files. If this rule fails,
38 ## check ALL_LINGUAS in configure.in against the po files in the source
39 ## directory (their names, not their contents)
40 findutils-check-pofiles:
41 @echo ; echo Checking to see if we distributed the full set of .po files
42 distcount=`ls $(distdir)/po/*.po | wc -l` ; srccount=`ls $(srcdir)/po/*.po | wc -l` ; test $$distcount -eq $$srccount || ( echo FAILED: Please check the value of ALL_LINGUAS in configure.in against the actual set of ".po" files >&2 ; false )
43 @echo All .po files distributed OK.
45 ## Check that we actually shipped all the test files that exist in the source.
46 ## runtest will run all the .exp files it finds, and so if we don't ship all
47 ## of them, there will be some tests which people using the CVS code will be
48 ## running, but people using the source distribution will not.
49 findutils-check-testfiles:
50 @echo ; echo Checking to see if we distributed the full set of .exp files
51 distcount=`ls $(distdir)/*/testsuite/*/*.exp | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.exp | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
52 @echo ; echo Checking to see if we distributed the full set of .xo files
53 distcount=`ls $(distdir)/*/testsuite/*/*.xo | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xo | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
54 @echo ; echo Checking to see if we distributed the full set of .xe files
55 distcount=`ls $(distdir)/*/testsuite/*/*.xe | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xe | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
56 @echo ; echo Checking to see if we distributed the full set of .xi files
57 distcount=`ls $(distdir)/*/testsuite/inputs/*.xi | wc -l` && srccount=`ls $(srcdir)/*/testsuite/inputs/*.xi | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount