From: Sergey Poznyakoff Date: Tue, 13 Jun 2006 13:34:14 +0000 (+0000) Subject: (check-options): Expand macros before grepping in $(info_TEXINFOS) X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=378818cb3ed20f27da86deac34629e3334bc057e;p=chaz%2Ftar (check-options): Expand macros before grepping in $(info_TEXINFOS) --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 4c8d448..38da8a8 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -50,8 +50,10 @@ check-options: doc-opt-col=0,opt-doc-col=0,header-col=0,rmargin=1' \ $(top_builddir)/src/tar --usage | \ sed -n 's/^\[--\([^]\=\[]*\).*/\1/p' | sort | uniq > opts.$$$$;\ - sed -n 's/@opindex *\([^,]*\)$$/\1/p;s/@opindex *\(.*\),.*/\1/p' \ - $(info_TEXINFOS) | sort | uniq > docs.$$$$;\ + $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ + $(info_TEXINFOS) | \ + sed -n '/^@macro/,/^@end macro/d;s/@opindex *\([^@,]*\).*/\1/p' \ + | sort | uniq > docs.$$$$;\ (echo 'Not documented options:';\ join -v1 opts.$$$$ docs.$$$$;\ echo 'Non-existing options:';\