From 56a0defa6d17539b67ebcda3340bb2d32e1b6bb6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 22 Aug 2009 00:14:58 +0000 Subject: generate man page for install-tl too, since we install it now git-svn-id: svn://tug.org/texlive/trunk@14805 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-update-auto | 47 ++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'Master/tlpkg/bin/tl-update-auto') diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto index 9352e749c4c..7a0dcac3dbc 100755 --- a/Master/tlpkg/bin/tl-update-auto +++ b/Master/tlpkg/bin/tl-update-auto @@ -148,9 +148,11 @@ for gnuconf in config.guess config.sub depcomp install-sh missing \ done -# tlmgr man page autogenerated. Arrange to ignore date differences. +# tlmgr and install-tl man pages autogenerated. +# Arrange to ignore date differences. # if $config_scripts_only; then :; else + # return 0 if files $1 and $2 are the same except for the first lines. # (we need to ignore the timestamps in the generation lines.) same_except_for_th () @@ -162,26 +164,37 @@ same_except_for_th () } mandir=texmf/doc/man -manfile=$mandir/man1/tlmgr.1 -tlmgr=texmf/scripts/texlive/tlmgr.pl -# -pod2man $tlmgr >$temp -if same_except_for_th $manfile $temp; then - $verbose " `basename $manfile` ok." - rm -f $manfile.new -else - $chicken $mv $temp $manfile +webdir=/home/httpd/html/texlive/doc +man_update=false + +for script in texmf/scripts/texlive/tlmgr.pl install-tl; do + pod2man $script >$temp + + basescript=`basename $script .pl` + manfile=$mandir/man1/$basescript.1 + + if same_except_for_th $manfile $temp; then + $verbose " `basename $manfile` ok." + rm -f $manfile.new + else + $chicken $mv $temp $manfile + man_update=true + + # Update the version on the web site; since these aren't checked in, we + # can do it unconditionally. + # + pod2html="$chicken pod2html --cachedir=/tmp" + $pod2html $script >$webdir/$basescript.html + fi +done + +if test -z "$chicken" && $man_update; then (cd $mandir && make) # remake pdfs, should do always but it's something update_list="$update_list $mandir" fi -# Update the version on the web site; since these aren't checked in, we -# can do it unconditionally. -# -pod2html="pod2html --cachedir=/tmp" -$pod2html $tlmgr >/home/httpd/html/texlive/doc/tlmgr.html -$pod2html install-tl >/home/httpd/html/texlive/doc/install-tl.html -fi +fi # config_scripts_only + # doc.html. # -- cgit v1.2.3