summaryrefslogtreecommitdiff
path: root/Build/tools/tpm-delete
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-09-19 17:53:04 +0000
committerKarl Berry <karl@freefriends.org>2006-09-19 17:53:04 +0000
commit1ea6475a183029c98767b9f4c92d71ff455842ee (patch)
treef90f8762200090f3c326dde5433d9854db8a32c1 /Build/tools/tpm-delete
parentdbf1886f326c18ce3ec6f23dc7f237c1e5cd59b8 (diff)
*** empty log message ***
git-svn-id: svn://tug.org/texlive/trunk@2163 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tools/tpm-delete')
-rwxr-xr-xBuild/tools/tpm-delete9
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/tools/tpm-delete b/Build/tools/tpm-delete
index 6417c34db1e..f97b66d73a1 100755
--- a/Build/tools/tpm-delete
+++ b/Build/tools/tpm-delete
@@ -6,6 +6,7 @@
# Takes just the package name, no .tpm suffix, no type, no subdirs.
mydir=`dirname $0`
+mydir=`cd $mydir && pwd`
Master=`cd $mydir/../../Master && pwd`
cd $Master || exit 1
@@ -24,10 +25,11 @@ for arg in "$@"; do
exit 1
fi
+ # this removes the files. we write out the directory names.
$mydir/tpm-factory.pl --debug \
--master_dir=$Master --dest_dir=/tmp --ftp_dir=/tmp \
--remove --name=$type/$arg \
- | sed -e 's/unlinked/svn rm/' \
+ | sed -e 's/unlinked/svn rm /' \
-e 's,/[^/]*$,,' \
-e "s,/tpm\$,/tpm/$1.tpm," \
>/tmp/tpmrm
@@ -35,5 +37,10 @@ for arg in "$@"; do
sort -u -o /tmp/tpmrm /tmp/tpmrm
sh /tmp/tpmrm
+ # now transform into directory list for later svn commit.
+ sed 's/^svn rm //' /tmp/tpmrm >/tmp/tldel.dirs
+ # edit a collection-* file by hand.
+ echo $Master/texmf/tpm >>/tmp/tldel.dirs
+
# leave svn commit to be done by hand for this time.
done