summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-09-18 23:01:10 +0000
committerKarl Berry <karl@freefriends.org>2013-09-18 23:01:10 +0000
commit59e14ca1cb8dc807d3a015e7dbf36e2133d6d820 (patch)
tree288b6f46ea293c419308726280909a0412bae824 /Master/tlpkg/libexec
parent03b4781dee398a30d033aab5f007883e2f844ccc (diff)
lilyglyphs (18sep13)
git-svn-id: svn://tug.org/texlive/trunk@31696 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds42
1 files changed, 35 insertions, 7 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 2fe1dfe19a6..f3f5994d3b9 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1108,6 +1108,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'ktv-texdata' => '&PREHOOK_ktv_texdata',
'latex-git-log' => '&PREHOOK_latex_git_log',
'latexdiff' => '&PREHOOK_latexdiff',
+ 'lilyglyphs' => '&PREHOOK_lilyglyphs',
'mathspic' => '&PREHOOK_mathspic',
'movie15' => '&PREHOOK_flatten1',
'musixtex-fonts' => '&PREHOOK_unzip',
@@ -1159,6 +1160,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'knuth' => '&POSTknuth',
'koma-script' => '&POST_rmsymlink',
'latex2e-help-texinfo' => '&POSTlatex2ehelptexinfo',
+ 'lilyglyphs' => '&POSTlilyglyphs',
'listbib' => '&POSTlistbib',
'lithuanian' => '&POSTlithuanian',
'luaotfload' => '&POST_do_man',
@@ -2370,6 +2372,7 @@ $standardxmt='\.xmt';
# scripts to install under texmf*/.../scripts, but not bindir.
%specialscripts_nobin = (
'epspdf' => '(epspdf(|\.help|boot|tk)|\.rb|makegray\.pro)$',
+ 'lilyglyphs' => 'lilyglyphs_common.py',
'lua-alt-getopt' => '\.lua$',
'lua2dox' => '\.(lua|def)$',
'luaindex' => '\.lua$',
@@ -2411,6 +2414,7 @@ $standardxmt='\.xmt';
'latexmk' => '\.pl$',
'latexfileversion' => 'latexfileversion$',
'latexpand' => 'latexpand$',
+ 'lilyglyphs' => 'lily-.*\.py$',
'listbib' => 'listbib$',
'listings-ext' => '\.sh$',
'ltxfileinfo' => 'ltxfileinfo$',
@@ -2699,6 +2703,25 @@ sub xmkdir {
&SYSTEM ("mkdir -p @dirs");
}
+# mv multiple things into one final (possibly new) destination directory.
+sub mv_with_mkdir {
+ my @args = @_;
+ my $destdir = pop (@args);
+ &xmkdir ($destdir);
+ &SYSTEM ("$MV @args $destdir");
+}
+
+# mv a single thing to another name, ensuring the parent of the
+# destination exists. But if the destination itself exists, that's an error.
+sub rename_with_mkdir {
+ my ($from,$to) = @_;
+ die "rename_with_mkdir needs exactly two args (got @_)" if @_ != 2;
+ die "rename_with_mkdir destination exists: $to" if -e $to;
+ (my $parent = $to) =~ s,/[^/]*$,,;
+ &xmkdir ($parent);
+ &SYSTEM ("$MV $from $to");
+}
+
# run a shell command.
#
sub SYSTEM {
@@ -4743,6 +4766,11 @@ sub PREHOOK_latexdiff {
&SYSTEM ("$MV latexdiff-vc latexdiff-vc.pl");
}
+sub PREHOOK_lilyglyphs {
+ print "PREHOOK_$package - mv */*.py scripts to be found by specialscripts\n";
+ &SYSTEM ("$MV bin/* lib/* .");
+}
+
sub PREHOOK_mathspic {
print "PREHOOK_$package - eliminate version from mathspicNNN.pl\n";
# the w32 wrapper can only find foo.pl from foo, not fooNNN.pl.
@@ -5195,13 +5223,6 @@ sub POSTenigma {
&mv_with_mkdir ("enigma", "$DEST/doc/context/third/enigma/");
}
-sub mv_with_mkdir {
- my @args = @_;
- my $destdir = pop (@args);
- &xmkdir ($destdir);
- &SYSTEM ("$MV @args $destdir");
-}
-
sub POSTeplain {
print "POST$package - eplain.info, man\n";
@@ -5342,6 +5363,13 @@ sub POSTlatex2ehelptexinfo {
&SYSTEM ("$RM -rf spanish");
}
+sub POSTlilyglyphs {
+ print "\t POST$package - move directories around\n";
+ &rename_with_mkdir ("fonts", "$DEST/fonts/opentype/public/$package");
+ &rename_with_mkdir ("source", "$DEST/source/luatex/$package");
+ &rename_with_mkdir ("tex", "$DEST/tex/lualatex/$package");
+}
+
sub POSTlistbib {
print "\t POST$package - move .doc to .bst\n";
my $dest = "$DEST/bibtex/bst/$package";