From 6ac754f03838e01f7bd2ad2772eb6fde8eb34775 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 17 Dec 2012 23:46:31 +0000 Subject: first steps towards cstex packages git-svn-id: svn://tug.org/texlive/trunk@28560 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/ctan2tl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Master/tlpkg/bin/ctan2tl') diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl index 6a1dd7ab7e0..e685d4ba9c9 100755 --- a/Master/tlpkg/bin/ctan2tl +++ b/Master/tlpkg/bin/ctan2tl @@ -107,6 +107,12 @@ fi # clean up the tmpdir possibly created by tlpkginfo --prepare. ctan_root=`tlpkginfo --ctan-root` if echo "$ctan_dir" | egrep "^$ctan_root" >/dev/null; then :; else + ctan_dir=`cd $ctan_dir && pwd` # canonicalize + slashes=`echo $ctan_dir | tr -cd /` + if test "$slashes" = /; then + echo "$0: only one directory level in CTAN directory: $ctan_dir" >&2 + exit 1 + fi rm -rf $ctan_dir fi fi # end of copying from CTAN. -- cgit v1.2.3