diff options
Diffstat (limited to 'Master/tlpkg/bin/c2l3')
-rwxr-xr-x | Master/tlpkg/bin/c2l3 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/c2l3 b/Master/tlpkg/bin/c2l3 new file mode 100755 index 00000000000..44388f30f2d --- /dev/null +++ b/Master/tlpkg/bin/c2l3 @@ -0,0 +1,39 @@ +#!/bin/sh +# $Id$ +# Originally written by Karl Berry. Public domain. +# +# Front-front-end script for c2l to update LaTeX3, +# or (with first arg "e") LaTeX2e, both of which comprise several +# packages that should be updated together. Look at the end of the output +# for the summarized results for each package, e.g., to see if any files +# ended up getting misplaced. +# +# Argument "p" run place. + +dirsfile=/tmp/`id -u`.tlplace.dirs +cp /dev/null $dirsfile.tmp +cp /dev/null /tmp/first + +if test "x$1" = e; then + shift + label=l2e + pkgs="amsmath cyrillic graphics tools latex" + # latex-tds still has knuth psnfss; babel is separate +else + label=l3 + pkgs="l3kernel l3packages l3experimental l3build l3backend" +fi + +for p in $pkgs; do + echo "${label}pkg $p" >&2 # progress of a sort + printf "\f ${label}pkg $p\n" + c2l "$@" $p | tee /tmp/c2l.out + sed -n "1,/`printf \f`/p" /tmp/c2l.out >>/tmp/first + echo >>/tmp/first + cat $dirsfile >>$dirsfile.tmp +done + +sort -u $dirsfile.tmp >$dirsfile +wc $dirsfile +echo +cat /tmp/first |