summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-20 23:05:01 +0000
committerKarl Berry <karl@freefriends.org>2016-03-20 23:05:01 +0000
commit8e40493a78e68ac15c343e70ded4c5d131bfa1d4 (patch)
treecf9d3cf3c3d108c22d8ff539235ce6fcedcdfac3 /Master/tlpkg
parent08bcc7ae8d3ce3f5c1e3a2355a239cd3c2f538cb (diff)
doc tweaks
git-svn-id: svn://tug.org/texlive/trunk@40090 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-xMaster/tlpkg/bin/pdflatex-preserve-pdf22
-rwxr-xr-xMaster/tlpkg/bin/tl-update-asy3
-rw-r--r--Master/tlpkg/doc/packages.txt2
3 files changed, 26 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/pdflatex-preserve-pdf b/Master/tlpkg/bin/pdflatex-preserve-pdf
new file mode 100755
index 00000000000..f9d70b1e571
--- /dev/null
+++ b/Master/tlpkg/bin/pdflatex-preserve-pdf
@@ -0,0 +1,22 @@
+#!/bin/sh -ex
+# $Id$
+# Public domain. Originally written by Karl Berry, 2015.
+# This tiny script is used from ctan2tds as a specialinsrunner.
+#
+# The problem is that a number of packages make it impossible to
+# generate derived files (.sty) from their .dtx without also
+# regenerating the documentation (.pdf). Which we do not want to do,
+# because remaking the doc generally involves many steps, external
+# programs, and who knows what else.
+#
+# Thus this script saves foo.pdf, runs pdflatex foo.tex, then restores
+# foo.pdf. That way we get the derived files but the author's .pdf.
+#
+# Authors are sometimes responsive to supporting an alternate method for
+# running the dtx that does not remake the doc (e.g., \ifpdf), but not
+# always. So we need this workaround.
+
+basefile=`echo "$1" | sed 's/\.[^.]*$//'`
+mv "$basefile.pdf" save.pdf
+pdflatex "$@"
+mv save.pdf "$basefile.pdf"
diff --git a/Master/tlpkg/bin/tl-update-asy b/Master/tlpkg/bin/tl-update-asy
index ab483772ca1..628f9aedebe 100755
--- a/Master/tlpkg/bin/tl-update-asy
+++ b/Master/tlpkg/bin/tl-update-asy
@@ -12,7 +12,7 @@
# for myself; feel free to peruse tug.org:~karl/.bash_login, etc.
# --karl
-ver=... # the newly-released version
+ver=... # the newly-released version, from revision.cc
test "x$1" = x--build || exit 1
@@ -46,6 +46,7 @@ elif test "x$1" = x--build; then
# as a script, because it's so often necessary to redo.
set -e
PATH=/usr/bin:/bin:/sbin; export PATH # system gcc for sake of shared libs
+ PATH=$PATH:$lb # get our kpsewhich
svn=/usr/local/bin/svn # so we need our svn explicitly
unset GREP_OPTIONS CDPATH
diff --git a/Master/tlpkg/doc/packages.txt b/Master/tlpkg/doc/packages.txt
index 5aaef8153e6..ad90784660c 100644
--- a/Master/tlpkg/doc/packages.txt
+++ b/Master/tlpkg/doc/packages.txt
@@ -17,11 +17,13 @@ To add a new platform:
update 00texlive.installer.tlpsrc as needed.
- update .tlpsrc files if necessary: most likely asymptote, biber, xindy.
- regenerate tlpdb.
+- ask builder for entry entry in source/README.
To remove a platform:
- remove directory in Master/bin.
- remove xz, xzdec, maybe wget binaries in Master/tlpkg/installer.
- remove any special cases in Master/tlpkg/tlpsrc.
+- remove entry in source/README, if there is one.
- rebuild.