diff options
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-x | tl-build.sh | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/tl-build.sh b/tl-build.sh index 7b68d39..3640724 100755 --- a/tl-build.sh +++ b/tl-build.sh | |||
@@ -92,12 +92,34 @@ if [[ ${with_context} == "y" ]]; then | |||
92 | #curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz | 92 | #curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz |
93 | #tar xzf luametatex-$context_ver.tar.gz | 93 | #tar xzf luametatex-$context_ver.tar.gz |
94 | #cd luametatex-$context_ver | 94 | #cd luametatex-$context_ver |
95 | if [[ -d luametatex ]];then | ||
96 | rm -f luametatex-{$context_ver}.tar.xz | ||
97 | rm -rf luametatex | ||
98 | fi | ||
95 | rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz . | 99 | rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz . |
96 | xzcat luametatex-$context_ver.tar.xz | tar xf - | 100 | xzcat luametatex-$context_ver.tar.xz | tar xf - |
97 | cd luametatex | 101 | cd luametatex |
98 | sh build.sh | 102 | sh build.sh |
99 | fi | 103 | fi |
100 | 104 | ||
105 | function include_context { | ||
106 | cd ${tl_sourcedir} | ||
107 | if [[ -d ${tl_sourcedir}/inst/bin ]];then | ||
108 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` | ||
109 | cp luametatex/build/native/luametatex $tl_bindir | ||
110 | cd ${tl_bindir} | ||
111 | ln -s luametatex context | ||
112 | ln -s luametatex mtxrun | ||
113 | ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua | ||
114 | ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua | ||
115 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools | ||
116 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit | ||
117 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit | ||
118 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec | ||
119 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart | ||
120 | fi | ||
121 | } | ||
122 | |||
101 | # Build Asymptote | 123 | # Build Asymptote |
102 | if [[ ${with_asymptote} == "y" ]];then | 124 | if [[ ${with_asymptote} == "y" ]];then |
103 | cd ${tl_sourcedir}/utils/asymptote | 125 | cd ${tl_sourcedir}/utils/asymptote |
@@ -115,19 +137,7 @@ if [[ ${build_tl} == "y" ]]; then | |||
115 | export TL_MAKE=gmake | 137 | export TL_MAKE=gmake |
116 | ./Build ${enable_xindy} | 138 | ./Build ${enable_xindy} |
117 | if [[ ${with_context} == "y" ]]; then | 139 | if [[ ${with_context} == "y" ]]; then |
118 | cd ${tl_sourcedir} | 140 | include_context |
119 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` | ||
120 | cp luametatex-$context_ver/build/native/luametatex $tl_bindir | ||
121 | cd ${tl_bindir} | ||
122 | ln -s luametatex context | ||
123 | ln -s luametatex mtxrun | ||
124 | ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua | ||
125 | ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua | ||
126 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools | ||
127 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit | ||
128 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit | ||
129 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec | ||
130 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart | ||
131 | fi | 141 | fi |
132 | if [[ ${with_asymptote} == "y" ]];then | 142 | if [[ ${with_asymptote} == "y" ]];then |
133 | cd ${tl_sourcedir} | 143 | cd ${tl_sourcedir} |
@@ -136,6 +146,10 @@ if [[ ${build_tl} == "y" ]]; then | |||
136 | cd ${tl_bindir} | 146 | cd ${tl_bindir} |
137 | ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy | 147 | ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy |
138 | fi | 148 | fi |
149 | else | ||
150 | if [[ ${with_context} == "y" ]]; then | ||
151 | include_context | ||
152 | fi | ||
139 | fi | 153 | fi |
140 | 154 | ||
141 | cd ${this_dir} | 155 | cd ${this_dir} |