1997-11-09 19:06:53 +00:00
|
|
|
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
2001-06-16 11:08:17 +00:00
|
|
|
info_TEXINFOS = coreutils.texi
|
1996-06-16 18:47:30 +00:00
|
|
|
|
2001-05-20 08:21:05 +00:00
|
|
|
EXTRA_DIST = perm.texi getdate.texi constants.texi doclicense.texi
|
1996-11-02 14:47:46 +00:00
|
|
|
|
1998-11-21 17:43:41 +00:00
|
|
|
# The following is necessary if the package name is 8 characters or longer.
|
|
|
|
|
# If the info documentation would be split into 10 or more separate files,
|
|
|
|
|
# then this is necessary even if the package name is 7 characters long.
|
|
|
|
|
#
|
|
|
|
|
# Tell makeinfo to put everything in a single info file: <package>.info.
|
|
|
|
|
# Otherwise, it would also generate files with names like <package>.info-[123],
|
|
|
|
|
# and those names all map to one 14-byte name (<package>.info-) on some crufty
|
1996-11-02 14:47:46 +00:00
|
|
|
# old systems.
|
|
|
|
|
MAKEINFO = makeinfo --no-split
|
2001-05-20 08:21:05 +00:00
|
|
|
|
2003-04-04 15:22:05 +00:00
|
|
|
constants.texi: $(top_srcdir)/src/tail.c
|
2001-05-21 12:34:57 +00:00
|
|
|
LC_ALL=C \
|
|
|
|
|
sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \
|
|
|
|
|
$(top_srcdir)/src/tail.c > t-$@
|
|
|
|
|
mv t-$@ $@
|
|
|
|
|
|
2003-04-04 15:22:05 +00:00
|
|
|
MAINTAINERCLEANFILES = constants.texi
|
2001-05-21 12:34:57 +00:00
|
|
|
|
|
|
|
|
$(DVIS): $(EXTRA_DIST)
|
|
|
|
|
$(INFO_DEPS): $(EXTRA_DIST)
|
|
|
|
|
|
2004-11-03 17:39:00 +00:00
|
|
|
# Extended regular expressions to match word starts and ends.
|
|
|
|
|
_W = (^|[^A-Za-z0-9_])
|
|
|
|
|
W_ = ([^A-Za-z0-9_]|$$)
|
|
|
|
|
|
2001-05-20 08:21:05 +00:00
|
|
|
# List words/regexps here that should not appear in the texinfo documentation.
|
2004-03-24 15:12:11 +00:00
|
|
|
# E.g., use @sc{nul}, not `NUL'
|
|
|
|
|
# and use `time zone', not `timezone'.
|
2001-05-20 08:21:05 +00:00
|
|
|
check-texinfo:
|
2003-04-01 22:16:10 +00:00
|
|
|
fail=0; \
|
|
|
|
|
grep timezone $(srcdir)/*.texi && fail=1; \
|
2004-11-03 17:39:00 +00:00
|
|
|
$(EGREP) '$(_W)IO$(W_)' $(srcdir)/*.texi && fail=1; \
|
2003-04-10 19:32:23 +00:00
|
|
|
grep non-zero $(srcdir)/*.texi && fail=1; \
|
2004-07-02 15:18:43 +00:00
|
|
|
grep '@url{' $(srcdir)/*.texi && fail=1; \
|
2004-11-03 17:39:00 +00:00
|
|
|
$(EGREP) '$(_W)NUL$(W_)' $(srcdir)/*.texi && fail=1; \
|
2003-04-01 22:16:10 +00:00
|
|
|
grep '\$$@"' $(srcdir)/*.texi && fail=1; \
|
2004-07-02 15:13:42 +00:00
|
|
|
grep -n '[^[:punct:]]@footnote' $(srcdir)/*.texi && fail=1; \
|
2004-07-02 15:05:40 +00:00
|
|
|
grep -n filename $(srcdir)/*.texi|grep -vE 'setfilename|{filename}' \
|
|
|
|
|
&& fail=1; \
|
2003-04-02 14:45:21 +00:00
|
|
|
$(PERL) -e 1 2> /dev/null && { $(PERL) -ne \
|
2003-02-05 20:39:59 +00:00
|
|
|
'/\bPOSIX\b/ && !/\@acronym{POSIX}/ && !/^\* / || /{posix}/ and print,exit 1' \
|
2003-04-01 22:16:10 +00:00
|
|
|
$(srcdir)/*.texi 2> /dev/null || fail=1; }; \
|
2005-06-19 13:43:50 +00:00
|
|
|
grep -iwE 'builtins?' $(srcdir)/*.texi && fail=1; \
|
|
|
|
|
grep -iwE 'path(name)?s?' $(srcdir)/*.texi \
|
|
|
|
|
| grep -vE '@vindex PATH$$|@env{PATH}' && fail=1; \
|
2003-04-01 22:16:10 +00:00
|
|
|
exit $$fail
|
2001-05-20 08:21:05 +00:00
|
|
|
|
|
|
|
|
check: check-texinfo
|