summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-man
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-13 17:30:40 +0000
committerKarl Berry <karl@freefriends.org>2020-03-13 17:30:40 +0000
commit3166b3e1095114d49cbef65216417c43bcd932d7 (patch)
tree4820c86c7887bd36bbba7ea3ad9ace67fee5ff11 /Master/tlpkg/bin/tl-update-man
parent174147dcdbfb24f62966d39bb4f196d9b38895e4 (diff)
fmtutil/updmap/etc. man page updates for 2020
git-svn-id: svn://tug.org/texlive/trunk@54278 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-man')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-man18
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/tlpkg/bin/tl-update-man b/Master/tlpkg/bin/tl-update-man
index 8abd51adbe8..87ecfcc9d15 100755
--- a/Master/tlpkg/bin/tl-update-man
+++ b/Master/tlpkg/bin/tl-update-man
@@ -2,9 +2,13 @@
# $Id$
# Public domain. Originally written 2008, Karl Berry.
#
-# This script is run by hand at the end of a release cycle to copy the
+# This script is run by hand at the end of a release cycle to copy changed
# man pages from the temporary install tree resulting from a normal
# build to the live Master hierarchy.
+#
+# For a way to undo, see kludge script ~karl/bin/tl-unman.
+
+chicken= #echo
mydir=`cd \`dirname $0\` && pwd`
Master=`cd $mydir/../.. && pwd`
@@ -24,14 +28,20 @@ for sect in 1 5; do
rm -f pmxab.1 scor2prt.1 msxlint.1
ls >$TMPDIR/new
- # copy files from build to runtime:
- find -type f | sort | xargs tar cf - | (cd $rundir && tar xf -)
if test -n "`find -type l`"; then
echo "$0: unexpected man symlinks in `pwd`" >&2
echo "$0: everything should use .so; goodbye" >&2
exit 1
fi
+ # copy files from build to runtime, if contents have changed.
+ for f in *.$sect; do
+ if cmp -s $f $rundir/$f; then :; else
+ echo $f
+ $chicken cp -pf $f $rundir/$f
+ fi
+ done
+
# add new:
needed=$TMPDIR/needed.$sect
comm -13 $TMPDIR/now $TMPDIR/new >$needed
@@ -43,7 +53,7 @@ for sect in 1 5; do
#
# and we can check against the binaries.
if test $sect = 1; then
- bindir=$Master/bin/i386-linux
+ bindir=$Master/bin/x86_64-linux
for m in *; do
f=`basename $m .1`
if test ! -r "$bindir/$f"; then