X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=doc%2FMakefile.am;h=c1e061b0b52514200d15346ec12ec71b05b00868;hb=ae678398792d063722b57b51d19bf92f56fdc406;hp=4d63faf247fae0d53b2ba22acf39c562920e6c4d;hpb=fb88325f56406a11afcc7a02cd33a85077517410;p=chaz%2Ftar diff --git a/doc/Makefile.am b/doc/Makefile.am index 4d63faf..c1e061b 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -28,8 +28,9 @@ tar_TEXINFOS = \ header.texi\ rendition.texi\ snapshot.texi\ + sparse.texi\ value.texi -EXTRA_DIST = gendocs_template texify.sed +EXTRA_DIST = gendocs_template mastermenu.el texify.sed DISTCLEANFILES=*.info* # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. @@ -42,6 +43,31 @@ header.texi: $(top_srcdir)/src/tar.h sed -f $(srcdir)/texify.sed $(top_srcdir)/src/tar.h \ | expand >$@ +master-menu: $(tar_TEXINFOS) + emacs -batch -l mastermenu.el -f make-master-menu $(info_TEXINFOS) + +check-options: + @ARGP_HELP_FMT='usage-indent=0,short-opt-col=0,long-opt-col=0,\ +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.$$$$;\ + $(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:';\ + join -v2 opts.$$$$ docs.$$$$) > report.$$$$;\ + rm opts.$$$$ docs.$$$$;\ + if [ -n "`sed '1,2d' report.$$$$`" ]; then \ + cat report.$$$$;\ + rm report.$$$$;\ + exit 1;\ + fi;\ + rm report.$$$$ + + clean-local: rm -rf manual