diff options
author | Karl Berry <karl@freefriends.org> | 2008-03-07 19:26:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-03-07 19:26:47 +0000 |
commit | bd73c3cb1402eda07b0859c0e1768f47cc019e63 (patch) | |
tree | 92538802ba94eeb5941e066519fbe428be60a16f | |
parent | bcfdd06eec201626e38bdd68d97c9582af455727 (diff) |
symlink makeglossaries script
git-svn-id: svn://tug.org/texlive/trunk@6881 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/tetex/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/tetex/Makefile.in | 15 | ||||
l--------- | Master/bin/i386-linux/makeglossaries | 1 | ||||
-rwxr-xr-x | Master/tlpkg/bin/ctan2tds | 2 | ||||
-rwxr-xr-x | Master/tlpkg/bin/ctan2tl | 8 | ||||
-rwxr-xr-x | Master/tlpkg/bin/place | 30 |
6 files changed, 39 insertions, 23 deletions
diff --git a/Build/source/texk/tetex/ChangeLog b/Build/source/texk/tetex/ChangeLog index 08ce588ef66..bf2cd4cf8e2 100644 --- a/Build/source/texk/tetex/ChangeLog +++ b/Build/source/texk/tetex/ChangeLog @@ -1,3 +1,9 @@ +2008-03-07 Karl Berry <karl@tug.org> + + * Makefile.in (LINKEDPLSCRIPTS): rename from LINKEDPERLSCRIPTS. + (LINKEDNOEXTSCRIPTS): new variable for makeglossaries. + (install-linkedscripts): install them. + 2008-03-03 Karl Berry <karl@tug.org> * latex.info, latex2e.texi: remove; this will become a separate diff --git a/Build/source/texk/tetex/Makefile.in b/Build/source/texk/tetex/Makefile.in index dd05256ad4e..81ed0bdcec2 100644 --- a/Build/source/texk/tetex/Makefile.in +++ b/Build/source/texk/tetex/Makefile.in @@ -14,7 +14,12 @@ SCRIPTS = \ texconfig texconfig-dialog texconfig-sys texdoc texdoctk \ texlinks thumbpdf updmap updmap-sys -LINKEDPERLSCRIPTS = a2ping e2pall epstopdf pdfcrop pkfix ps2eps +# .pl and in texmf +LINKEDPLSCRIPTS = a2ping e2pall epstopdf pdfcrop pkfix ps2eps +# +# no extension and in texmf-dist. +# (need to create a config file or something, ick.) +LINKEDNOEXTSCRIPTS = glossaries/makeglossaries CONTEXTSCRIPTS = \ ctxtools exatools luatools makempy mpstools mptopdf mtxtools \ @@ -109,12 +114,18 @@ install-exec: install-linkedscripts # wrapper for Windows is also done by hand, and also could/should be # done by ctan2tl. # +# $(scriptdir) here is the binary directory, e.g., bin/i386-linux. +# install-linkedscripts: -$(SHELL) $(srcdir)/../mkinstalldirs $(scriptdir) - for s in $(LINKEDPERLSCRIPTS); do \ + for s in $(LINKEDPLSCRIPTS); do \ rm -f $(scriptdir)/$$s; \ ln -s ../../texmf/scripts/$$s/$$s.pl $(scriptdir)/$$s; \ done + for s in $(LINKEDNOEXTSCRIPTS); do \ + target=$(scriptdir)/`basename $$s`; rm -f $$target; \ + ln -s ../../texmf-dist/scripts/$$s $$target`; \ + done kpse_include ../make/clean.mk diff --git a/Master/bin/i386-linux/makeglossaries b/Master/bin/i386-linux/makeglossaries new file mode 120000 index 00000000000..526413aa3ea --- /dev/null +++ b/Master/bin/i386-linux/makeglossaries @@ -0,0 +1 @@ +../../texmf-dist/scripts/glossaries/makeglossaries
\ No newline at end of file diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index 22d0c4253e9..8a21c637249 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -180,7 +180,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'gfsneohellenic', "&MAKEflatten", 'gfsporson', "&MAKEflatten", 'gfssolomos', "&MAKEflatten", - 'glossaries', "&MAKEcopy", + 'glossaries', "die 'needs setup from ctan:install, sorry'", #&MAKEcopy", 'glhyph', "die 'hyphenation madness needs work, sorry'", 'graphics', "&MAKEcopy", # we use latex-tds/graphics.zip 'graphicxsp', "die 'skipping, requires adobe distiller'", diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl index e1360d71564..6f37ceb1038 100755 --- a/Master/tlpkg/bin/ctan2tl +++ b/Master/tlpkg/bin/ctan2tl @@ -22,9 +22,9 @@ if test "x$1" = x--help; then echo "--place execute place to do repository adds/removes." echo "--no-ctan if already have files in Build/tmp.raw/PKG." echo - echo "This does not actually commit anything to the repository. Without" - echo "--place, it doesn't even touch anything in the repository outside of" - echo "Build/tmp.{raw,cooked}." + echo "This never actually commits anything to the repository." + echo "Without --place, it doesn't even touch anything in the repository" + echo "outside of Build/tmp.{raw,cooked}." echo echo "Read and understand http://tug.org/texlive/pkgupdate.html" echo "before running this." @@ -134,5 +134,5 @@ rm -rf $pkg.done place $place_chicken $pkg status=$? -rm -rf $raw/$pkg +$copy_from_ctan && rm -rf $raw/$pkg exit $status diff --git a/Master/tlpkg/bin/place b/Master/tlpkg/bin/place index 421ab4137b1..e4e1e2c6186 100755 --- a/Master/tlpkg/bin/place +++ b/Master/tlpkg/bin/place @@ -61,16 +61,16 @@ if ($Root eq 'texmf-doc') { } # initialize TLPDB -my $tlpdb = new TeXLive::TLPDB ( root => "$M" ); +my $tlpdb = new TeXLive::TLPDB ('root' => $M); # create TLTREE from stuff in cooked/$pkg -my $tltree = TeXLive::TLTREE->new( 'svnroot' => "$cooked/$package" ); +#$::LOGLEVELTERMINAL = $::LOG_DDDEBUG; +my $tltree = TeXLive::TLTREE->new ('svnroot' => "$cooked/$package"); $tltree->init_from_files; # get package from TLPDB; -my $tlpold = $tlpdb->get_package("$package"); +my $tlpold = $tlpdb->get_package ($package); if (defined($tlpold)) { - # what to do with binfiles, but they are not place-ed!!! - foreach ($tlpold->srcfiles, $tlpold->runfiles, $tlpold->docfiles) { + foreach ($tlpold->all_files) { $Old{$_} = 1; } } else { @@ -79,16 +79,18 @@ if (defined($tlpold)) { # create new tlpsrc and tlpobj my $tlpsrc = TeXLive::TLPSRC; -if (! -r "$M/tlpkg/tlpsrc/$package.tlpsrc") { - $tlpsrc->name("$package"); +my $tlpsrcfile = "$M/tlpkg/tlpsrc/$package.tlpsrc"; +if (! -r $tlpsrcfile) { + $tlpsrc->name($package); $tlpsrc->category($Type); if (!$chicken) { - open TMP, ">$M/tlpkg/tlpsrc/$package.tlpsrc" or die "Cannot open tlpsrc file!"; + $TMP = ">$tlpsrcfile"; + open (TMP) || die "open($TMP) failed: $!"; $tlpsrc->writeout(\*TMP); - close TMP + close TMP; } } else { - $tlpsrc->from_file("$M/tlpkg/tlpsrc/$package.tlpsrc"); + $tlpsrc->from_file($tlpsrcfile); } my $tlpnew = $tlpsrc->make_tlpobj($tltree); @@ -101,17 +103,13 @@ if (!defined($tlpold)) { } else { print "new vs. present $package\n"; my @oldfiles; - push @oldfiles, $tlpold->srcfiles; - push @oldfiles, $tlpold->runfiles; - push @oldfiles, $tlpold->docfiles; + push @oldfiles, $tlpold->all_files; `rm -f $TMP/tlplace.old`; foreach (sort @oldfiles) { `echo $_ >> $TMP/tlplace.old`; } my @newfiles; - push @newfiles, $tlpnew->srcfiles; - push @newfiles, $tlpnew->runfiles; - push @newfiles, $tlpnew->docfiles; + push @newfiles, $tlpnew->all_files; `rm -f $TMP/tlplace.new`; foreach (sort @newfiles) { `echo $_ >> $TMP/tlplace.new`; |