diff options
author | Robert Alessi <alessi@robertalessi.net> | 2024-03-04 07:19:48 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2024-03-04 07:19:48 +0100 |
commit | c46992ab54573bf6ba850fdf00c5e6fa47cf52e5 (patch) | |
tree | c172661eddbc17fdb5a4258b49a183cc3555a592 /tl-build.sh | |
parent | a03a0dddd7d92e610802abfaeb056ccc94656e26 (diff) | |
download | texlive-openbsd-c46992ab54573bf6ba850fdf00c5e6fa47cf52e5.tar.gz |
download the latest luametatex from TL svn
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-x | tl-build.sh | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/tl-build.sh b/tl-build.sh index 6b9df5a..b2ecab1 100755 --- a/tl-build.sh +++ b/tl-build.sh | |||
@@ -25,7 +25,7 @@ read with_clisp?'[y/n] ' | |||
25 | enable_xindy="" | 25 | enable_xindy="" |
26 | 26 | ||
27 | # Context | 27 | # Context |
28 | preset_context_ver=2.11.01 | 28 | preset_context_ver=2.11.02 |
29 | echo "Include Context v${preset_context_ver}?" | 29 | echo "Include Context v${preset_context_ver}?" |
30 | read with_context?'[y/n] ' | 30 | read with_context?'[y/n] ' |
31 | if [[ ${with_context} == "y" ]]; then | 31 | if [[ ${with_context} == "y" ]]; then |
@@ -87,22 +87,26 @@ fi | |||
87 | 87 | ||
88 | # If Context is required, then retrieve and build it first | 88 | # If Context is required, then retrieve and build it first |
89 | if [[ ${with_context} == "y" ]]; then | 89 | if [[ ${with_context} == "y" ]]; then |
90 | cd $tl_sourcedir | 90 | cd $tl_sourcedir |
91 | curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz | 91 | # github may be outdated, says the readme file |
92 | tar xzf 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 | cd luametatex-$context_ver | 93 | #tar xzf luametatex-$context_ver.tar.gz |
94 | sh build.sh | 94 | #cd luametatex-$context_ver |
95 | wget https://tug.org/svn/texlive/trunk/Master/source/luametatex-$context_ver.tar.xz | ||
96 | xzcat luametatex-$context_ver.tar.xz | tar xf - | ||
97 | cd luametatex | ||
98 | sh build.sh | ||
95 | fi | 99 | fi |
96 | 100 | ||
97 | # Build Asymptote | 101 | # Build Asymptote |
98 | if [[ ${with_asymptote} == "y" ]];then | 102 | if [[ ${with_asymptote} == "y" ]];then |
99 | cd ${tl_sourcedir}/utils/asymptote | 103 | cd ${tl_sourcedir}/utils/asymptote |
100 | ./configure --prefix=/tmp/asyinst --enable-texlive-build \ | 104 | ./configure --prefix=/tmp/asyinst --enable-texlive-build \ |
101 | --enable-static CXXFLAGS=-std=c++11 \ | 105 | --enable-static CXXFLAGS=-std=c++11 \ |
102 | --disable-curl --disable-lsp --disable-gsl --disable-fftw | 106 | --disable-curl --disable-lsp --disable-gsl --disable-fftw |
103 | sed -i -e 's/^LIBS = /LIBS = -static /' Makefile | 107 | sed -i -e 's/^LIBS = /LIBS = -static /' Makefile |
104 | gmake | 108 | gmake |
105 | strip asy | 109 | strip asy |
106 | fi | 110 | fi |
107 | 111 | ||
108 | # Now build TL | 112 | # Now build TL |
@@ -111,26 +115,26 @@ if [[ ${build_tl} == "y" ]]; then | |||
111 | export TL_MAKE=gmake | 115 | export TL_MAKE=gmake |
112 | ./Build ${enable_xindy} | 116 | ./Build ${enable_xindy} |
113 | if [[ ${with_context} == "y" ]]; then | 117 | if [[ ${with_context} == "y" ]]; then |
114 | cd ${tl_sourcedir} | 118 | cd ${tl_sourcedir} |
115 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` | 119 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` |
116 | cp luametatex-$context_ver/build/native/luametatex $tl_bindir | 120 | cp luametatex-$context_ver/build/native/luametatex $tl_bindir |
117 | cd ${tl_bindir} | 121 | cd ${tl_bindir} |
118 | ln -s luametatex context | 122 | ln -s luametatex context |
119 | ln -s luametatex mtxrun | 123 | ln -s luametatex mtxrun |
120 | ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua | 124 | ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua |
121 | ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua | 125 | ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua |
122 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools | 126 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools |
123 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit | 127 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit |
124 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit | 128 | ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit |
125 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec | 129 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec |
126 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart | 130 | ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart |
127 | fi | 131 | fi |
128 | if [[ ${with_asymptote} == "y" ]];then | 132 | if [[ ${with_asymptote} == "y" ]];then |
129 | cd ${tl_sourcedir} | 133 | cd ${tl_sourcedir} |
130 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` | 134 | tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` |
131 | cp utils/asymptote/asy ${tl_bindir} | 135 | cp utils/asymptote/asy ${tl_bindir} |
132 | cd ${tl_bindir} | 136 | cd ${tl_bindir} |
133 | ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy | 137 | ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy |
134 | fi | 138 | fi |
135 | fi | 139 | fi |
136 | 140 | ||