diff options
author | Karl Berry <karl@freefriends.org> | 2005-12-28 00:04:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2005-12-28 00:04:28 +0000 |
commit | e6faeef3e4205722d36bbbb86b3b3390ab6527be (patch) | |
tree | b6bf2abd8e881f40beaca430df2e1c34c02c19ab /Master/Tools/update-tpm | |
parent | 577983747d8680b8defbfdd03a9d50bad6fd54b7 (diff) |
trunk
git-svn-id: svn://tug.org/texlive/trunk@5 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/Tools/update-tpm')
-rwxr-xr-x | Master/Tools/update-tpm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/Tools/update-tpm b/Master/Tools/update-tpm new file mode 100755 index 00000000000..234de2dd053 --- /dev/null +++ b/Master/Tools/update-tpm @@ -0,0 +1,35 @@ +#!/bin/sh +# $Id: //depot/Master/Tools/update-tpm#4 $ $Date: 2005/10/08 $ $Author: karl $ +# Public domain. Originally written 2004, Karl Berry. +# +# Regenerate the given set of tpm's using tpm-factory. + +mydir=`dirname $0` +master=`cd $mydir/.. && pwd` +tools=$master/Tools + +verbose=${OVERRIDE_VERBOSE-} + +test $# -eq 0 && set - TLCore Package Documentation + +for type in "$@"; do + case $type in + TLCore) p=from; dir=texmf;; + Package) p=auto; dir=texmf-dist;; + Documentation) p=auto; dir=texmf-doc;; + *) echo "$0: unknown type $type, one of TLCore, Package, Documentation.">&2 + exit 1;; + esac + + cd $master/$dir/tpm || exit 1 + chmod a+rw * >&/dev/null # all files must be writable for tpm-factory. + + perl $tools/tpm-factory.pl $verbose \ + --master_dir=$master --ftp_dir=/tmp \ + --clean \ + --arch=all \ + --patterns=$p \ + --type=$type \ + | grep -v '^Writing ' +done +exit 0 |