From c46992ab54573bf6ba850fdf00c5e6fa47cf52e5 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 4 Mar 2024 07:19:48 +0100 Subject: download the latest luametatex from TL svn --- tl-build.sh | 62 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 33 insertions(+), 29 deletions(-) (limited to 'tl-build.sh') 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] ' enable_xindy="" # Context -preset_context_ver=2.11.01 +preset_context_ver=2.11.02 echo "Include Context v${preset_context_ver}?" read with_context?'[y/n] ' if [[ ${with_context} == "y" ]]; then @@ -87,22 +87,26 @@ fi # If Context is required, then retrieve and build it first if [[ ${with_context} == "y" ]]; then - cd $tl_sourcedir - curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz - tar xzf luametatex-$context_ver.tar.gz - cd luametatex-$context_ver - sh build.sh + cd $tl_sourcedir + # github may be outdated, says the readme file + #curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz + #tar xzf luametatex-$context_ver.tar.gz + #cd luametatex-$context_ver + wget https://tug.org/svn/texlive/trunk/Master/source/luametatex-$context_ver.tar.xz + xzcat luametatex-$context_ver.tar.xz | tar xf - + cd luametatex + sh build.sh fi # Build Asymptote if [[ ${with_asymptote} == "y" ]];then - cd ${tl_sourcedir}/utils/asymptote - ./configure --prefix=/tmp/asyinst --enable-texlive-build \ + cd ${tl_sourcedir}/utils/asymptote + ./configure --prefix=/tmp/asyinst --enable-texlive-build \ --enable-static CXXFLAGS=-std=c++11 \ --disable-curl --disable-lsp --disable-gsl --disable-fftw - sed -i -e 's/^LIBS = /LIBS = -static /' Makefile - gmake - strip asy + sed -i -e 's/^LIBS = /LIBS = -static /' Makefile + gmake + strip asy fi # Now build TL @@ -111,26 +115,26 @@ if [[ ${build_tl} == "y" ]]; then export TL_MAKE=gmake ./Build ${enable_xindy} if [[ ${with_context} == "y" ]]; then - cd ${tl_sourcedir} - tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` - cp luametatex-$context_ver/build/native/luametatex $tl_bindir - cd ${tl_bindir} - ln -s luametatex context - ln -s luametatex mtxrun - ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua - ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua - ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools - ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit - ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit - ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec - ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart + cd ${tl_sourcedir} + tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` + cp luametatex-$context_ver/build/native/luametatex $tl_bindir + cd ${tl_bindir} + ln -s luametatex context + ln -s luametatex mtxrun + ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua + ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua + ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/luatools luatools + ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/contextjit contextjit + ln -s ../../texmf-dist/scripts/context-texlive/stubs-mkiv/unix/mtxrunjit mtxrunjit + ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texexec texexec + ln -s ../../texmf-dist/scripts/context-texlive/stubs/unix/texmfstart texmfstart fi if [[ ${with_asymptote} == "y" ]];then - cd ${tl_sourcedir} - tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` - cp utils/asymptote/asy ${tl_bindir} - cd ${tl_bindir} - ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy + cd ${tl_sourcedir} + tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` + cp utils/asymptote/asy ${tl_bindir} + cd ${tl_bindir} + ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy fi fi -- cgit v1.2.3