aboutsummaryrefslogtreecommitdiff
path: root/tl-build.sh
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-04 07:19:48 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-04 07:19:48 +0100
commitc46992ab54573bf6ba850fdf00c5e6fa47cf52e5 (patch)
treec172661eddbc17fdb5a4258b49a183cc3555a592 /tl-build.sh
parenta03a0dddd7d92e610802abfaeb056ccc94656e26 (diff)
downloadtexlive-openbsd-c46992ab54573bf6ba850fdf00c5e6fa47cf52e5.tar.gz
download the latest luametatex from TL svn
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-xtl-build.sh62
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] '
25enable_xindy="" 25enable_xindy=""
26 26
27# Context 27# Context
28preset_context_ver=2.11.01 28preset_context_ver=2.11.02
29echo "Include Context v${preset_context_ver}?" 29echo "Include Context v${preset_context_ver}?"
30read with_context?'[y/n] ' 30read with_context?'[y/n] '
31if [[ ${with_context} == "y" ]]; then 31if [[ ${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
89if [[ ${with_context} == "y" ]]; then 89if [[ ${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
95fi 99fi
96 100
97# Build Asymptote 101# Build Asymptote
98if [[ ${with_asymptote} == "y" ]];then 102if [[ ${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
106fi 110fi
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
135fi 139fi
136 140