aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-03-12 06:54:03 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-03-12 06:54:03 +0000
commit8634b40148e722c492d526de6589ce2c5ce71781 (patch)
tree55ac4e3e023156e40f5ee8b3a4e37e18c2959f3c /doc
parent7cb41784b41132ddf3e814d9cd80a94c8f0a4fce (diff)
downloadmailfromd-8634b40148e722c492d526de6589ce2c5ce71781.tar.gz
mailfromd-8634b40148e722c492d526de6589ce2c5ce71781.tar.bz2
* doc/Makefile.am (check-refs, check-fixmes): Print correct
locations for multiple input files. Return a meaningful error code. * TODO: Update. git-svn-id: file:///svnroot/mailfromd/trunk@1645 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am35
1 files changed, 25 insertions, 10 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 17d51035..e6eedb95 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -83,18 +83,33 @@ check-exceptions:
$(info_TEXINFOS)
check-refs:
- @sed -e = $(info_TEXINFOS) $(mailfromd_TEXINFOS) | \
- sed -n 'N;/@FIXME-.*ref/{s/\(^[0-9][0-9]*\).*@FIXME-.*ref{\([^}]*\)}.*/$(info_TEXINFOS):\1: \2/gp}' > $@-t; \
- if [ -s $@-t ]; then echo "Unresolved cross-references:"; cat $@-t;\
- fi
- rm -f $@-t
+ @for file in $(info_TEXINFOS) $(mailfromd_TEXINFOS); \
+ do \
+ sed -e = $$file | \
+ sed -n 'N;/@FIXME-.*ref/{s/\(^[0-9][0-9]*\).*@FIXME-.*ref{\([^}]*\)}.*/'$$file':\1: \2/gp}'; \
+ done > $@-t; \
+ if [ -s $@-t ]; then \
+ echo "Unresolved cross-references:"; \
+ cat $@-t;\
+ rm $@-t; \
+ else \
+ rm -f $@-t; \
+ fi
check-fixmes:
- @sed -e = $(info_TEXINFOS) | \
- sed -n 'N;/@FIXME{/{s/\(^[0-9][0-9]*\).*@FIXME{\([^}]*\).*/$(info_TEXINFOS):\1: \2/gp}' > $@-t; \
- if [ -s $@-t ]; then echo "Unresolved FIXMEs:"; cat $@-t;\
- fi
- rm -f $@-t
+ @for file in $(info_TEXINFOS); \
+ do \
+ sed -e = $$file | \
+ sed -n 'N;/@FIXME{/{s/\(^[0-9][0-9]*\).*@FIXME{\([^}]*\).*/'$$file':\1: \2/gp}'; \
+ done > $@-t; \
+ if [ -s $@-t ]; then \
+ echo "Unresolved FIXMEs:"; \
+ cat $@-t; \
+ rm $@-t; \
+ false; \
+ else \
+ rm -f $@-t; \
+ fi
check-unrevised:
@grep -Hn @UNREVISED $(info_TEXINFOS) > $@-t; \

Return to:

Send suggestions and report system problems to the System administrator.