From 338365898f723e358b502e250b440e835734764a Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 4 Mar 2024 13:37:50 +0100 Subject: tl-build.sh: guess the directory into which luametatex will be extracted --- tl-build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tl-build.sh') diff --git a/tl-build.sh b/tl-build.sh index 3640724..8458a0d 100755 --- a/tl-build.sh +++ b/tl-build.sh @@ -89,16 +89,17 @@ fi if [[ ${with_context} == "y" ]]; then 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 + # 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 if [[ -d luametatex ]];then rm -f luametatex-{$context_ver}.tar.xz rm -rf luametatex fi rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz . xzcat luametatex-$context_ver.tar.xz | tar xf - - cd luametatex + luametatex_src_dir=$(xzcat luametatex-$context_ver.tar.xz | tar tf - | head -1) + cd ${luametatex_src_dir} sh build.sh fi @@ -106,7 +107,7 @@ function include_context { cd ${tl_sourcedir} if [[ -d ${tl_sourcedir}/inst/bin ]];then tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` - cp luametatex/build/native/luametatex $tl_bindir + cp ${luametatex_src_dir}/build/native/luametatex $tl_bindir cd ${tl_bindir} ln -s luametatex context ln -s luametatex mtxrun -- cgit v1.2.3