aboutsummaryrefslogtreecommitdiff
path: root/tl-build.sh
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-04 13:37:50 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-04 13:37:50 +0100
commit338365898f723e358b502e250b440e835734764a (patch)
tree97e4400f446460ca76f35025d2f6ba33dee0d1bd /tl-build.sh
parentf029541f39adf271468703750c6bfabdb7bdd5dc (diff)
downloadtexlive-openbsd-338365898f723e358b502e250b440e835734764a.tar.gz
tl-build.sh: guess the directory into which luametatex will be extracted
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-xtl-build.sh11
1 files changed, 6 insertions, 5 deletions
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
89if [[ ${with_context} == "y" ]]; then 89if [[ ${with_context} == "y" ]]; then
90 cd $tl_sourcedir 90 cd $tl_sourcedir
91 # github may be outdated, says the readme file 91 # github may be outdated, says the readme file
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 95 if [[ -d luametatex ]];then
96 rm -f luametatex-{$context_ver}.tar.xz 96 rm -f luametatex-{$context_ver}.tar.xz
97 rm -rf luametatex 97 rm -rf luametatex
98 fi 98 fi
99 rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz . 99 rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz .
100 xzcat luametatex-$context_ver.tar.xz | tar xf - 100 xzcat luametatex-$context_ver.tar.xz | tar xf -
101 cd luametatex 101 luametatex_src_dir=$(xzcat luametatex-$context_ver.tar.xz | tar tf - | head -1)
102 cd ${luametatex_src_dir}
102 sh build.sh 103 sh build.sh
103fi 104fi
104 105
@@ -106,7 +107,7 @@ function include_context {
106 cd ${tl_sourcedir} 107 cd ${tl_sourcedir}
107 if [[ -d ${tl_sourcedir}/inst/bin ]];then 108 if [[ -d ${tl_sourcedir}/inst/bin ]];then
108 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` 109 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin`
109 cp luametatex/build/native/luametatex $tl_bindir 110 cp ${luametatex_src_dir}/build/native/luametatex $tl_bindir
110 cd ${tl_bindir} 111 cd ${tl_bindir}
111 ln -s luametatex context 112 ln -s luametatex context
112 ln -s luametatex mtxrun 113 ln -s luametatex mtxrun