summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/cjk-build.pl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-01-01 01:47:13 +0000
committerKarl Berry <karl@freefriends.org>2009-01-01 01:47:13 +0000
commita477b52f73704eea5cc4af4652969b00329cbfa6 (patch)
tree3e3a3433df4a95769ea9bc5ace5927b0b3ce0162 /Master/tlpkg/libexec/cjk-build.pl
parent6d9ad83c3c55d2423019a5ad4b182e2ddd18dc03 (diff)
add cjk helpers
git-svn-id: svn://tug.org/texlive/trunk@11773 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec/cjk-build.pl')
-rw-r--r--Master/tlpkg/libexec/cjk-build.pl71
1 files changed, 71 insertions, 0 deletions
diff --git a/Master/tlpkg/libexec/cjk-build.pl b/Master/tlpkg/libexec/cjk-build.pl
new file mode 100644
index 00000000000..a7cc28cffc3
--- /dev/null
+++ b/Master/tlpkg/libexec/cjk-build.pl
@@ -0,0 +1,71 @@
+# cjk-build.pl
+#
+# Public domain.
+#
+# Written by Werner Lemberg <wl@gnu.org>
+#
+# This file is intended to be called from the `MAKEcjk' subroutine within
+# the ctan2tds perl script. It installs the necessary files from the CJK
+# package into the correct destinations.
+#
+# It expects that the CJK packages (cjk-4.8.2 and cjk-4.8.2-doc) have been
+# unpacked (unmodified) in the current directory. For installation, it
+# simply uses `install -d' so that missing subdirectories are created
+# automatically.
+
+
+# XXX: This installs files in the Build hierarchy!
+
+
+$INSTALL = "install -d"
+
+sub I
+{
+ my ($s, $d) = @_;
+ &SYSTEM ("$INSTALL $s $BUILD/source/texk/$d");
+}
+
+my $B = "cjkutils/bat";
+my $C = "cjkutils/conv";
+my $H = "cjkutils/hbf2gf";
+my $S = "cjkutils/scripts";
+
+
+&I("utils/Bg5conv/bg5conv.c", "$C/bg5conv.c");
+&I("utils/Bg5conv/bg5latex", "$S/bg5latex");
+&I("utils/Bg5conv/bg5pdflatex", "$S/bg5pdflatex");
+
+&I("utils/CEFconv/cef5conv.c", "$C/cef5conv.c");
+&I("utils/CEFconv/cef5latex", "$S/cef5latex");
+&I("utils/CEFconv/cef5pdflatex", "$S/cef5pdflatex");
+&I("utils/CEFconv/cefconv.c", "$C/cefconv.c");
+&I("utils/CEFconv/ceflatex", "$S/ceflatex");
+&I("utils/CEFconv/cefpdflatex", "$S/cefpdflatex");
+&I("utils/CEFconv/cefsconv.c", "$C/cefsconv.c");
+&I("utils/CEFconv/cefslatex", "$S/cefslatex");
+&I("utils/CEFconv/cefspdflatex", "$S/cefspdflatex");
+
+&I("utils/cjklatex/cjklatex.c", "$B/cjklatex.c");
+
+# utils/extconv/bg5+latex --- # soft link to gbklatex
+# utils/extconv/bg5+pdflatex --- # soft link to gbkpdflatex
+&I("utils/extconv/extconv.c", "$C/extconv.c");
+&I("utils/extconv/gbklatex", "$S/gbklatex");
+&I("utils/extconv/gbkpdflatex", "$S/gbkpdflatex");
+
+&I("utils/hbf2gf/configure.ac", "$H/configure.ac");
+&I("utils/hbf2gf/emdir.c", "$H/emdir.c");
+&I("utils/hbf2gf/emdir.h", "$H/emdir.h");
+&I("utils/hbf2gf/emtexdir.c", "$H/emtexdir.c");
+&I("utils/hbf2gf/emtexdir.h", "$H/emtexdir.h");
+&I("utils/hbf2gf/hbf2gf.def", "$H/hbf2gf.def");
+&I("utils/hbf2gf/hbf2gf.w", "$H/hbf2gf.w");
+&I("utils/hbf2gf/hbf.c", "$H/hbf.c");
+&I("utils/hbf2gf/hbf.h", "$H/hbf.h");
+
+&I("utils/SJISconv/sjisconv.c", "$C/sjisconv.c");
+&I("utils/SJISconv/sjislatex", "$S/sjislatex");
+&I("utils/SJISconv/sjispdflatex", "$S/sjispdflatex");
+
+1;
+# EOF