#!/bin/sh # $Id$ # Created by Sebastian Rahtz, long ago. Public domain. # # Update the texmf/lists/* files from all the tpm's. tools=`cd \`dirname $0\` && /bin/pwd` W=`cd \`dirname $0\`/../../Master && /bin/pwd` cd $W || exit 1 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 $tools/tpm2list.xsl $i done echo "$0: doing collections..." for i in texmf/tpm/collection*.tpm; do xsltproc --stringparam ROOT $W $tools/collection2list.xsl $i done echo "$0: doing schemes..." for i in texmf/tpm/scheme*.tpm; do xsltproc --stringparam ROOT $W $tools/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