summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/ctan2tl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-12-09 22:40:22 +0000
committerKarl Berry <karl@freefriends.org>2008-12-09 22:40:22 +0000
commita425057480a2ab8ddea0896d22fff152390cda3d (patch)
treecd70326a68b83f77aeafc65153a5d229d5d1ba0e /Master/tlpkg/bin/ctan2tl
parenta04cd5203028d7814866e4107e11078359c55953 (diff)
--no-ctan fix from jim hefferon
git-svn-id: svn://tug.org/texlive/trunk@11569 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/ctan2tl')
-rwxr-xr-xMaster/tlpkg/bin/ctan2tl11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl
index 6ac192017ed..66125006e8a 100755
--- a/Master/tlpkg/bin/ctan2tl
+++ b/Master/tlpkg/bin/ctan2tl
@@ -55,7 +55,12 @@ if test -z "$pkg"; then
exit 1
fi
-ctan_dir1=`tlpkginfo --prepare $pkg`
+if $copy_from_ctan; then
+ ctan_dir1=`tlpkginfo --prepare $pkg`
+else
+ ctan_dir1="$pkg"
+fi
+
if test -z "$ctan_dir1"; then
echo "$0: can't find CTAN directory for $pkg." >&2
exit 1
@@ -91,13 +96,13 @@ else
cp -pr $ctan_dir1/. $pkg
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
+fi # end of copying from CTAN.
+
#
printf "\n$0: calling ctan2tds\n"