aboutsummaryrefslogtreecommitdiff
path: root/tl-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-xtl-build.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tl-build.sh b/tl-build.sh
index c31c7a2..73c5184 100755
--- a/tl-build.sh
+++ b/tl-build.sh
@@ -18,6 +18,10 @@ if [[ ${with_context} == "y" ]]; then
18fi 18fi
19unset preset_context_ver 19unset preset_context_ver
20 20
21# Asymptote
22echo "Include Asymptote?"
23read with_asymptote?'[y/n] '
24
21# TL 25# TL
22echo "Build TL?" 26echo "Build TL?"
23read build_tl?'[y/n] ' 27read build_tl?'[y/n] '
@@ -75,12 +79,24 @@ if [[ ${with_context} == "y" ]]; then
75 sh build.sh 79 sh build.sh
76fi 80fi
77 81
82# Build Asymptote
83if [[ ${with_asymptote} == "y" ]];then
84 cd source/utils/asymptote
85 ./configure --prefix=/tmp/asyinst --enable-texlive-build \
86 --enable-static CXXFLAGS=-std=c++11 \
87 --disable-curl --disable-lsp --disable-gsl --disable-fftw
88 sed -i -e 's/^LIBS = /LIBS = -static /' Makefile
89 gmake
90 strip asy
91fi
92
78# Now build TL 93# Now build TL
79if [[ ${build_tl} == "y" ]]; then 94if [[ ${build_tl} == "y" ]]; then
80 cd ${tl_sourcedir} 95 cd ${tl_sourcedir}
81 export TL_MAKE=gmake 96 export TL_MAKE=gmake
82 ./Build ${enable_xindy} 97 ./Build ${enable_xindy}
83 if [[ ${with_context} == "y" ]]; then 98 if [[ ${with_context} == "y" ]]; then
99 cd ${tl_sourcedir}
84 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin` 100 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin`
85 cp luametatex-$context_ver/build/native/luametatex $tl_bindir 101 cp luametatex-$context_ver/build/native/luametatex $tl_bindir
86 cd $tl_bindir 102 cd $tl_bindir
@@ -89,6 +105,13 @@ if [[ ${build_tl} == "y" ]]; then
89 ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua 105 ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua
90 ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua 106 ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua
91 fi 107 fi
108 if [[ ${with_asymptote} == "y" ]];then
109 cd ${tl_sourcedir}
110 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin`
111 cp utils/asymptote/asy ${tl_sourcedir}/inst/bin
112 cd ${tl_bindir}
113 ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy
114 fi
92fi 115fi
93 116
94cd ${this_dir} 117cd ${this_dir}