summaryrefslogtreecommitdiff
path: root/Build/cdbuild/grab
blob: 65f36c28baa4f9fc7ba7e07deeea4806120507e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
HERE=`cd \`dirname $0\` && /bin/pwd`
cd $HERE || exit 1
ROOT=`cd ../../Master && /bin/pwd`
MASTER=$ROOT/texmf-dist/tpm
cd $HERE/cooked || exit 1
mkdir $1
cd $1
echo process $1 from $MASTER
test -f $MASTER/$1.tpm \
     && xsltproc -o /var/tmp/$$.list $HERE/tpm2files.xsl $MASTER/$1.tpm 
(cd $ROOT; tar -c -T /var/tmp/$$.list -f - ) | tar xf -
rm -rf texmf-dist/tpm/lists texmf-dist/tpm
chmod -R u+w .
echo Should have written `cat /var/tmp/$$.list | wc -l` files
rm /var/tmp/$$.list