aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-16 11:15:43 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-16 11:15:43 +0100
commit390a17bf9139e6e44ba906e21b914e40c041f0d5 (patch)
tree70ae0404416076996fc2a6b3e3a6730077b24d04
parentc716a2e3c629af43e33750d996c4d344da094134 (diff)
downloadtexlive-openbsd-390a17bf9139e6e44ba906e21b914e40c041f0d5.tar.gz
automatically checkout the right versions of libsigsegv, libiconv, clisp and asymptote
-rwxr-xr-xtl-build.sh41
1 files changed, 23 insertions, 18 deletions
diff --git a/tl-build.sh b/tl-build.sh
index 5cef9a1..eda6bea 100755
--- a/tl-build.sh
+++ b/tl-build.sh
@@ -4,7 +4,10 @@
4 4
5this_dir=`pwd` 5this_dir=`pwd`
6tl_sourcedir=${this_dir}/source 6tl_sourcedir=${this_dir}/source
7 7if [[ -e $1 ]];then
8. ${this_dir}/variables.conf
9fi
10
8echo "" 11echo ""
9echo " TeX Live for OpenBSD built script " 12echo " TeX Live for OpenBSD built script "
10echo "" 13echo ""
@@ -24,13 +27,8 @@ read with_clisp?'[y/n] '
24enable_xindy="" 27enable_xindy=""
25 28
26# Context 29# Context
27preset_context_ver=2.11.02 30echo "Include Context?"
28echo "Include Context v${preset_context_ver}?"
29read with_context?'[y/n] ' 31read with_context?'[y/n] '
30if [[ ${with_context} == "y" ]]; then
31 context_ver=${preset_context_ver}
32fi
33unset preset_context_ver
34 32
35# Asymptote 33# Asymptote
36echo "Include Asymptote?" 34echo "Include Asymptote?"
@@ -43,13 +41,14 @@ read build_tl?'[y/n] '
43# First build: clisp 41# First build: clisp
44if [[ ${with_clisp} == "y" ]]; then 42if [[ ${with_clisp} == "y" ]]; then
45 mkdir $tl_sourcedir/clisp && cd $tl_sourcedir/clisp 43 mkdir $tl_sourcedir/clisp && cd $tl_sourcedir/clisp
44 utils_README=$tl_sourcedir/utils/README
46 clisp_basedir=`pwd` 45 clisp_basedir=`pwd`
47 clisp_toolsdir=$clisp_basedir/clisp-tools 46 clisp_toolsdir=$clisp_basedir/clisp-tools
48 clisp_builddir=$clisp_basedir/clisp-build 47 clisp_builddir=$clisp_basedir/clisp-build
49 mkdir $clisp_toolsdir 48 mkdir $clisp_toolsdir
50 wget=wget # or "curl -O" or whatever 49 wget=wget # or "curl -O" or whatever
51 #libsigsegv_ver=libsigsegv-2.13 50 #libsigsegv_ver=libsigsegv-2.13
52 libsigsegv_ver=$(curl -s https://tug.org/svn/texlive/trunk/Build/source/utils/README?view=co | grep libsigsegv_ver= | sed 's/.*=//') 51 libsigsegv_ver=$(cat ${utils_README} | grep libsigsegv_ver= | sed 's/.*=//')
53 cd $clisp_basedir 52 cd $clisp_basedir
54 $wget http://ftp.gnu.org/gnu/libsigsegv/$libsigsegv_ver.tar.gz 53 $wget http://ftp.gnu.org/gnu/libsigsegv/$libsigsegv_ver.tar.gz
55 gzip -dc $libsigsegv_ver.tar.gz | tar xf - 54 gzip -dc $libsigsegv_ver.tar.gz | tar xf -
@@ -58,7 +57,7 @@ if [[ ${with_clisp} == "y" ]]; then
58 && make && make check && make install 57 && make && make check && make install
59 # iconv 58 # iconv
60 #libiconv_ver=libiconv-1.16 59 #libiconv_ver=libiconv-1.16
61 libiconv_ver=$(curl -s https://tug.org/svn/texlive/trunk/Build/source/utils/README?view=co | grep libiconv_ver= | sed 's/.*=//') 60 libiconv_ver=$(cat ${utils_README} | grep libiconv_ver= | sed 's/.*=//')
62 cd $clisp_basedir 61 cd $clisp_basedir
63 $wget http://ftp.gnu.org/gnu/libiconv/$libiconv_ver.tar.gz 62 $wget http://ftp.gnu.org/gnu/libiconv/$libiconv_ver.tar.gz
64 gzip -dc $libiconv_ver.tar.gz | tar xf - 63 gzip -dc $libiconv_ver.tar.gz | tar xf -
@@ -68,7 +67,7 @@ if [[ ${with_clisp} == "y" ]]; then
68 && make && make check && make install 67 && make && make check && make install
69 68
70 #clisp_ver=clisp-2.49.92 69 #clisp_ver=clisp-2.49.92
71 clisp_ver=$(curl -s https://tug.org/svn/texlive/trunk/Build/source/utils/README?view=co | grep clisp_ver= | sed 's/.*=//') 70 clisp_ver=$(cat ${utils_README} | grep clisp_ver= | sed 's/.*=//')
72 cd $clisp_basedir 71 cd $clisp_basedir
73 $wget https://alpha.gnu.org/gnu/clisp/$clisp_ver.tar.bz2 72 $wget https://alpha.gnu.org/gnu/clisp/$clisp_ver.tar.bz2
74 bunzip2 -dc $clisp_ver.tar.bz2 | tar xf - 73 bunzip2 -dc $clisp_ver.tar.bz2 | tar xf -
@@ -87,15 +86,21 @@ fi
87# If Context is required, then retrieve and build it first 86# If Context is required, then retrieve and build it first
88if [[ ${with_context} == "y" ]]; then 87if [[ ${with_context} == "y" ]]; then
89 cd $tl_sourcedir 88 cd $tl_sourcedir
90 # github may be outdated, says the readme file 89 if [[ -e $1 ]];then
91 # curl -L https://github.com/contextgarden/luametatex/archive/refs/tags/v$context_ver.tar.gz > luametatex-$context_ver.tar.gz 90 context_ver=$(svn list svn://tug.org/texlive/branches/branch2024/Master/source | grep luametatex-.*xz | sed 's/.*-\(.*\).tar.xz/\1/')
92 # tar xzf luametatex-$context_ver.tar.gz 91 if [[ -d luametatex ]];then
93 # cd luametatex-$context_ver 92 rm -f luametatex-{$context_ver}.tar.xz
94 if [[ -d luametatex ]];then 93 rm -rf luametatex
95 rm -f luametatex-{$context_ver}.tar.xz 94 fi
96 rm -rf luametatex 95 svn export svn://tug.org/texlive/branches/branch2024/Master/source/luametatex-${context_ver}.tar.xz
96 else
97 context_ver=$(svn list svn://tug.org/texlive/trunk/Master/source | grep luametatex-.*xz | sed 's/.*-\(.*\).tar.xz/\1/')
98 if [[ -d luametatex ]];then
99 rm -f luametatex-{$context_ver}.tar.xz
100 rm -rf luametatex
101 fi
102 svn export svn://tug.org/texlive/trunk/Master/source/luametatex-${context_ver}.tar.xz
97 fi 103 fi
98 rsync tug.org::tldevsrc/Master/source/luametatex-$context_ver.tar.xz .
99 xzcat luametatex-$context_ver.tar.xz | tar xf - 104 xzcat luametatex-$context_ver.tar.xz | tar xf -
100 luametatex_src_dir=$(xzcat luametatex-$context_ver.tar.xz | tar tf - | head -1) 105 luametatex_src_dir=$(xzcat luametatex-$context_ver.tar.xz | tar tf - | head -1)
101 cd ${luametatex_src_dir} 106 cd ${luametatex_src_dir}