summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-auto
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-08-22 00:14:58 +0000
committerKarl Berry <karl@freefriends.org>2009-08-22 00:14:58 +0000
commit56a0defa6d17539b67ebcda3340bb2d32e1b6bb6 (patch)
tree9f56d4defec07a7fc04ed440dde11f816b2444b4 /Master/tlpkg/bin/tl-update-auto
parent8a1d20ace83fcaff197c944f2704eec9ad3c3648 (diff)
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
Diffstat (limited to 'Master/tlpkg/bin/tl-update-auto')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-auto47
1 files changed, 30 insertions, 17 deletions
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.
#