texlive[55336] Master/texmf-dist: pwebmac (29may20)

commits+karl at tug.org commits+karl at tug.org
Fri May 29 23:12:38 CEST 2020


Revision: 55336
          http://tug.org/svn/texlive?view=revision&revision=55336
Author:   karl
Date:     2020-05-29 23:12:37 +0200 (Fri, 29 May 2020)
Log Message:
-----------
pwebmac (29may20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/plain/pwebmac/README.md
    trunk/Master/texmf-dist/doc/plain/pwebmac/makeall
    trunk/Master/texmf-dist/tex/plain/pwebmac/pwebmac.tex

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/plain/pwebmac/LICENSE

Deleted: trunk/Master/texmf-dist/doc/plain/pwebmac/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/LICENSE	2020-05-29 21:12:24 UTC (rev 55335)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/LICENSE	2020-05-29 21:12:37 UTC (rev 55336)
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Andreas Scherer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

Modified: trunk/Master/texmf-dist/doc/plain/pwebmac/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/README.md	2020-05-29 21:12:24 UTC (rev 55335)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/README.md	2020-05-29 21:12:37 UTC (rev 55336)
@@ -27,5 +27,5 @@
 `tex "\let\pdf+\input…"`, `pdftex`, and `xetex` create PDF output with
 clickable links and bookmarks (depending on your PDF viewer).
 
-The `pwebmac` package is free software and may be used and distributed
-according to the MIT License as shipped with the original distribution.
+The `pwebmac` package is free software and may be used without restraints.
+This is version “4.5.1” of the `pwebmac` package — 2020-05-29, AS.

Modified: trunk/Master/texmf-dist/doc/plain/pwebmac/makeall
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/makeall	2020-05-29 21:12:24 UTC (rev 55335)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/makeall	2020-05-29 21:12:37 UTC (rev 55336)
@@ -1,12 +1,17 @@
 #!/bin/sh
+# Test driver for 'pwebmac.tex' in combination with various TeX engines.
+# Production tool for all major WEB programs in TeX Live (invoked as
+# './makeall --new --pdftocfront --tex={pdftex,xetex}').
+# Public domain.  Originally written by Andreas Scherer, 2020.
 
-LONGOPTS=changes,new,pdftocfront,tex:
-SHRTOPTS=cnpt:
+LONGOPTS=changes,new,outdir:,pdftocfront,tex:
+SHRTOPTS=cno:pt:
 
-CHANGES=false
-NEW=false
-PDFTOCFRONT=false
-TEX=tex
+CHANGES=false # apply main changefile to WEB source
+NEW=false # '\input pwebmac' instead of '\input webmac'
+OUTDIR=. # path where the resulting tarballs are placed
+PDFTOCFRONT=false # push table-of-contents to front of PDF output
+TEX=tex # or 'pdftex' or 'xetex'
 
 getopt -T >/dev/null
 
@@ -24,8 +29,8 @@
 do
 	case "$1" in
 		-c | --changes ) CHANGES=true; shift ;;
-		-n | --new ) NEW=true; export TEXINPUTS=".:/opt/github/web//:"
-			shift ;;
+		-n | --new ) NEW=true; shift ;;
+		-o | --outdir ) OUTDIR="$2"; shift 2 ;;
 		-p | --pdftocfront ) PDFTOCFRONT=true; shift ;;
 		-t | --tex ) TEX="$2"; shift 2 ;;
 		-- ) shift; break ;;
@@ -43,14 +48,14 @@
 do
 	if $CHANGES
 	then
-		c=$(basename $f .web).ch
+		c=$(basename $f .web)
 		case $c in
-			"pdftex.ch"|"xetex.ch" )
+			"pdftex"|"xetex" )
 				c=$KNUTHWARE/$c
 				c=$(echo $c | sed -e 's?\(texk/\)?Work/\1?') ;;
 			* ) c=$KNUTHWARE/$c ;;
 		esac
-		weave $f $c
+		weave $f $c.ch
 		sed -i -e "s/\(\\\\let\\\\maybe=\)\\\\iftrue/\1\\\\iffalse/" \
 			$(basename $f .web).tex
 	else
@@ -74,7 +79,7 @@
 		# purge conflict between bibtex.web and webmac.tex
 		# 'E' no longer free to be active character
 		# fix table-of-contents page for bibtex
-		"bibtex") sed -i -e "s/titlefalse/titletrue/" \
+		"bibtex" ) sed -i -e "s/titlefalse/titletrue/" \
 			-e "70,77d" $f.tex ;;
 
 		# make room for new material in weave.web
@@ -104,6 +109,7 @@
 						r pdftex.patch
 						}"  $f.tex
 				fi
+				# active links in PDF outlines/bookmarks
 				cat > texmf-pdf.patch << FI
   \ifacro{\toksF={}\makeoutlinetoks{[#2] #3}\outlinedone\outlinedone}\fi
 FI
@@ -124,7 +130,6 @@
 	if $PDFTOCFRONT
 	then
 		# shift table-of-contents pages to the front in PDF
-		export TEXINPUTS=".:/opt/github/cwebbin//:"$TEXINPUTS
 		sed -i -e "1 s/\(webmac\)/\1\n\\\\input pdfwebtocfront/" $f.tex
 		$TEX $f.tex # run TeX twice
 	fi
@@ -135,17 +140,19 @@
 if $PDFTOCFRONT
 then
 	# create tarballs for publication
-	pax vftovp.pdf vptovf.pdf -wvzf etc.tar.gz -s ,^,etc/,
-	pax mf.pdf -wvzf mf.tar.gz -s ,^,mf/,
+	pax vftovp.pdf vptovf.pdf -wvzf $OUTDIR/etc.tar.gz -s ,^,etc/,
+	pax mf.pdf -wvzf $OUTDIR/mf.tar.gz -s ,^,mf/,
 	pax gftodvi.pdf gftopk.pdf gftype.pdf mft.pdf \
-		-wvzf mfware.tar.gz -s ,^,mfware/,
-	pax tex.pdf -wvzf tex.tar.gz -s ,^,tex/,
+		-wvzf $OUTDIR/mfware.tar.gz -s ,^,mfware/,
+	pax tex.pdf -wvzf $OUTDIR/tex.tar.gz -s ,^,tex/,
 	pax dvitype.pdf pltotf.pdf pooltype.pdf tftopl.pdf \
-		-wvzf texware.tar.gz -s ,^,texware/,
-	pax tangle.pdf weave.pdf -wvzf web.tar.gz -s ,^,web/,
-	pax bibtex.pdf -wvzf bibtex.tar.gz -s ,^,bibtex/,
+		-wvzf $OUTDIR/texware.tar.gz -s ,^,texware/,
+	pax tangle.pdf weave.pdf -wvzf $OUTDIR/web.tar.gz -s ,^,web/,
+	pax bibtex.pdf -wvzf $OUTDIR/bibtex.tar.gz -s ,^,bibtex/,
 	pax dvicopy.pdf patgen.pdf pktogf.pdf pktype.pdf \
-		-wvzf other.tar.gz -s ,^,other/,
-	pax pdftex.pdf -wvzf pdftex.tar.gz -s ,^,pdftex/,
-	pax xetex.pdf -wvzf xetex.tar.gz -s ,^,xetex/,
+		-wvzf $OUTDIR/other.tar.gz -s ,^,other/,
+	pax pdftex.pdf -wvzf $OUTDIR/pdftex.tar.gz -s ,^,pdftex/,
+	pax xetex.pdf -wvzf $OUTDIR/xetex.tar.gz -s ,^,xetex/,
 fi
+
+exit 0

Modified: trunk/Master/texmf-dist/tex/plain/pwebmac/pwebmac.tex
===================================================================
--- trunk/Master/texmf-dist/tex/plain/pwebmac/pwebmac.tex	2020-05-29 21:12:24 UTC (rev 55335)
+++ trunk/Master/texmf-dist/tex/plain/pwebmac/pwebmac.tex	2020-05-29 21:12:37 UTC (rev 55336)
@@ -2,6 +2,7 @@
 % pdfTeX adjustments provided by Han The Thanh <thanh at pdftex.org>.
 % XeTeX adjustments provided by Khaled Hosny <khaledhosny at eglug.org>.
 % macro integration \`a la CWEB by Andreas Scherer <andreas_tex at freenet.de>.
+% This file is not copyrighted and can be used freely.
 \ifx\renewenvironment\undefined\else\endinput\fi % LaTeX will use other macros
 \xdef\fmtversion{\fmtversion+WEBMAC4.5}
 \newif\ifpdf



More information about the tex-live-commits mailing list.