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/tpmfromcat | |
parent | 577983747d8680b8defbfdd03a9d50bad6fd54b7 (diff) |
trunk
git-svn-id: svn://tug.org/texlive/trunk@5 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/Tools/tpmfromcat')
-rwxr-xr-x | Master/Tools/tpmfromcat | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/Tools/tpmfromcat b/Master/Tools/tpmfromcat new file mode 100755 index 00000000000..c0630fda221 --- /dev/null +++ b/Master/Tools/tpmfromcat @@ -0,0 +1,24 @@ +#!/bin/sh +# read the CTAN catalogue and update the TPM files where possible +Master=`cd \`dirname $0\`/.. && /bin/pwd` +cd $Master || exit 1 + +test $# -eq 0 && set - `find texmf-dist/tpm -name "*.tpm"` +for i in "$@"; do + echo Try to update $i + p4 edit $i + N=`basename $i .tpm` + L=`echo $N | sed 's/\(.\).*/\1/'` + wget -q -O x.xml \ +http://cvs.sarovar.org/cgi-bin/cvsweb.cgi/~checkout~/texcatalogue/entries/$L/$N.xml?cvsroot=texcatalogue +grep -q "<entry" x.xml || echo "<entry/>" > x.xml +xmllint --dropdtd x.xml > /tmp/$N.xml + xsltproc \ + -o $N.tpm \ + --stringparam sarovar /tmp/$N.xml \ + --stringparam authors `pwd`/texmf-doc/doc/english/catalogue/authors.xml \ + `pwd`/Tools/tpmfromcat.xsl $i + xmllint --format $N.tpm > $i + rm x.xml /tmp/$N.xml $N.tpm +done +p4 revert -a |