summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tlpkginfo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-17 23:46:31 +0000
committerKarl Berry <karl@freefriends.org>2012-12-17 23:46:31 +0000
commit6ac754f03838e01f7bd2ad2772eb6fde8eb34775 (patch)
tree04c444eef068dd1a4c9e58c11f4e28ebe119faed /Master/tlpkg/bin/tlpkginfo
parenta9be70a79afe30937c809014d02feed956ba3e80 (diff)
first steps towards cstex packages
git-svn-id: svn://tug.org/texlive/trunk@28560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tlpkginfo')
-rwxr-xr-xMaster/tlpkg/bin/tlpkginfo15
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/tlpkg/bin/tlpkginfo b/Master/tlpkg/bin/tlpkginfo
index 0a8c600193e..74ae74b9400 100755
--- a/Master/tlpkg/bin/tlpkginfo
+++ b/Master/tlpkg/bin/tlpkginfo
@@ -49,8 +49,9 @@ sub main {
return 0;
} else {
- die "Usage: $0 --ctan-dir PKGNAME or --prepare PKGNAME
- or --ctan-root (not \"@ARGV\").\n";
+ die "Usage: $0 --ctan-dir PKGNAME\n"
+ . " or: --prepare PKGNAME\n"
+ . " or: --ctan-root (not \"@ARGV\").\n";
}
}
@@ -170,12 +171,18 @@ sub find_ctan_dir {
if $me =~ /^hyphen-/ && ! $ctan_dir;
}
- # In the case of mathspic, we cannot use the catalogue directory,
- # since we want to ignore the dos/ subdir and just go with the perl/.
+ # For mathspic, we cannot use the catalogue directory:
+ # we want to ignore the dos/ subdir and just go with the perl/.
if ($me eq "mathspic") {
$ctan_dir .= "/perl";
}
+ # For cs, we need to unpack from multiple tarballs,
+ # so copy the entire cstex directory.
+ if ($pkgname eq "cs") {
+ $ctan_dir = "$CTAN/macros/cstex/base";
+ }
+
# prepend ctan root if not an absolute dir (this happens when we make
# a temp dir).
$ctan_dir = "$CTAN/$ctan_dir" if $ctan_dir =~ m,^[^/],;