diff options
author | Karl Berry <karl@freefriends.org> | 2006-02-13 00:49:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-02-13 00:49:47 +0000 |
commit | 045f872c421bb96d9e680ccd7f79c823cef10521 (patch) | |
tree | 20483574ec8846ce1adb25e905f4a0b4e2505a41 /Build/tools/update-lists | |
parent | a1e47d103e66e2a947105dd7378e8df3918c3f62 (diff) |
move Master/Tools to Build/tools
git-svn-id: svn://tug.org/texlive/trunk@1514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tools/update-lists')
-rwxr-xr-x | Build/tools/update-lists | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Build/tools/update-lists b/Build/tools/update-lists new file mode 100755 index 00000000000..f262977f678 --- /dev/null +++ b/Build/tools/update-lists @@ -0,0 +1,44 @@ +#!/bin/sh +# $Id$ +# Created by Sebastian Rahtz, long ago. Public domain. +# +# Update the texmf/lists/* files from all the tpm's. + +M=`cd \`dirname $0\` && /bin/pwd` +W=`cd \`dirname $0\`/.. && /bin/pwd` +cd $W || exit 1 # work in Master + +Date=`date +%Y/%m/%d` +Who=`whoami` + +if test "x$1" = x-n; then + chicken=true +else + chicken=false +fi + +$chicken || rm -f texmf/lists/* + +echo "$0: doing packages from $W" +for i in texmf-dist/tpm/*.tpm texmf/tpm/hyphen*tpm texmf/tpm/lib-*.tpm texmf/tpm/bin-*.tpm \ + texmf-doc/tpm/* ; do + xsltproc --stringparam ROOT $W $M/tpm2list.xsl $i +done + +echo "$0: doing collections..." +for i in texmf/tpm/collection*.tpm; do + xsltproc --stringparam ROOT $W $M/collection2list.xsl $i +done + +echo "$0: doing schemes..." +for i in texmf/tpm/scheme*.tpm; do + xsltproc --stringparam ROOT $W $M/scheme2list.xsl $i +done + +echo "$0: regenerated lists." +$chicken && exit 0 + +echo "$0: updating lists in repository." +cd texmf/lists || exit 1 +svn commit -m'update-lists autoupdate' +# xx must svn remove old lists somehow |