diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-09 01:53:16 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-09 01:53:16 +0000 |
commit | 908ab07d0121eb079549a81f6ea8151dbe9ba8fd (patch) | |
tree | 5eca95172e2f3a10140cfeb5278493ed3645374f /Master/tlpkg/bin/ctan2tl | |
parent | 4995e66a9fc9c535b4cf23a7ca354313c1a5283f (diff) |
tlpkinfo --prepare for all tds incl. latex-tds (moved from ctan2tl and ctan2tds). Fix -> 2x in tlpkg-ctan-check.
git-svn-id: svn://tug.org/texlive/trunk@7964 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/ctan2tl')
-rwxr-xr-x | Master/tlpkg/bin/ctan2tl | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl index 8f1f6896d31..600c7ff6f08 100755 --- a/Master/tlpkg/bin/ctan2tl +++ b/Master/tlpkg/bin/ctan2tl @@ -51,7 +51,7 @@ if test -z "$pkg"; then exit 1 fi -ctan_dir1=`tlpkginfo --ctan-dir-tds $pkg` +ctan_dir1=`tlpkginfo --prepare $pkg` if test -z "$ctan_dir1"; then echo "$0: can't find CTAN directory for $pkg." >&2 exit 1 @@ -70,37 +70,7 @@ if $copy_from_ctan; then # remove whatever dregs in raw that might be lying around. rm -rf $pkg -# An important special case: the latex-tds project contains tds-ready -# zip files for the base latex distribution and amslatex. -# We want to use them. -corelatex_tds_pkglist="babel|cyrillic|graphics|latex|psnfss|tools" -amslatex_tds_pkglist="ams|amsrefs|amsmath" # dup in tlpkginfo -latex_tds_pkglist="latex-tds|$amslatex_tds_pkglist|$corelatex_tds_pkglist" - -if echo "$pkg" | egrep "^($latex_tds_pkglist)\$" >/dev/null; then - mkdir $pkg - ctan_root=`tlpkginfo --ctan-root` - # - # complications: the latex-tds package, for our purposes, is the - # sources for the tools that do the process; that's in the zip file - # source.zip, in the latex-tds directory. Similarly, the zip file for - # latex itself is named "base.zip". Finally, amslatex.zip actually - # contains several packages (= directories) -- such as ams, amscls, - # etc. AMS sets it up that way. - # - if test $pkg = latex-tds; then - zipname=source.tds.zip - elif test $pkg = latex; then - zipname=base.tds.zip - elif echo "$pkg" | egrep "^($amslatex_tds_pkglist)\$" >/dev/null; then - zipname=amslatex.tds.zip - else - zipname=$pkg.tds.zip - fi - echo "$0: but overriding ctan dir with latex-tds/$zipname" - (cd $pkg && unzip -qq $ctan_root/macros/latex/contrib/latex-tds/$zipname) - -elif test "$pkg" = genmisc; then +if test "$pkg" = genmisc; then # do not copy subdirs, symlinks, or any files but .sty and .tex # (that is, no patch.doc or pmat.zip). mkdir -p $pkg |