summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/ctan2tl
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-09 02:48:22 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-09 02:48:22 +0000
commit3e80ea74cb89f969b0aaec7971be577cc4e033e3 (patch)
tree40652507e45ffe48525dfdf510749962fb8b15a2 /Master/tlpkg/bin/ctan2tl
parent9fe970b0cd572991bb0ebdee216bb4a457e23bed (diff)
clean up the tmpdirs after ctan2tl & tlpkg-ctan-check
git-svn-id: svn://tug.org/texlive/trunk@7967 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/ctan2tl')
-rwxr-xr-xMaster/tlpkg/bin/ctan2tl5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl
index 600c7ff6f08..8f852e12bcd 100755
--- a/Master/tlpkg/bin/ctan2tl
+++ b/Master/tlpkg/bin/ctan2tl
@@ -86,6 +86,11 @@ fi
fi # end of copying from CTAN.
+# clean up the tmpdir possibly created by 'tlpkginfo --prepare'
+ctan_root=`tlpkginfo --ctan-root`
+if ! echo "$ctan_dir1" | egrep "^$ctan_root" >/dev/null; then
+ rm -rf $ctan_dir1
+fi
#
printf "\n$0: calling ctan2tds\n"