diff options
Diffstat (limited to 'tl-build.sh')
-rwxr-xr-x | tl-build.sh | 41 |
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 | ||
5 | this_dir=`pwd` | 5 | this_dir=`pwd` |
6 | tl_sourcedir=${this_dir}/source | 6 | tl_sourcedir=${this_dir}/source |
7 | 7 | if [[ -e $1 ]];then | |
8 | . ${this_dir}/variables.conf | ||
9 | fi | ||
10 | |||
8 | echo "" | 11 | echo "" |
9 | echo " TeX Live for OpenBSD built script " | 12 | echo " TeX Live for OpenBSD built script " |
10 | echo "" | 13 | echo "" |
@@ -24,13 +27,8 @@ read with_clisp?'[y/n] ' | |||
24 | enable_xindy="" | 27 | enable_xindy="" |
25 | 28 | ||
26 | # Context | 29 | # Context |
27 | preset_context_ver=2.11.02 | 30 | echo "Include Context?" |
28 | echo "Include Context v${preset_context_ver}?" | ||
29 | read with_context?'[y/n] ' | 31 | read with_context?'[y/n] ' |
30 | if [[ ${with_context} == "y" ]]; then | ||
31 | context_ver=${preset_context_ver} | ||
32 | fi | ||
33 | unset preset_context_ver | ||
34 | 32 | ||
35 | # Asymptote | 33 | # Asymptote |
36 | echo "Include Asymptote?" | 34 | echo "Include Asymptote?" |
@@ -43,13 +41,14 @@ read build_tl?'[y/n] ' | |||
43 | # First build: clisp | 41 | # First build: clisp |
44 | if [[ ${with_clisp} == "y" ]]; then | 42 | if [[ ${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 |
88 | if [[ ${with_context} == "y" ]]; then | 87 | if [[ ${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} |