From c0fc155aef61870c6dbc04aabd317ea418762fa7 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 14 Mar 2024 14:27:22 +0100 Subject: better include an option to compile either TL-current (default) or TL-dev --- tl-build.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tl-build.sh') diff --git a/tl-build.sh b/tl-build.sh index 1d47095..b6260a0 100755 --- a/tl-build.sh +++ b/tl-build.sh @@ -3,8 +3,13 @@ # Public domain. Originally written 2005 by Karl Berry. this_dir=`pwd` -tl_sourcedir=`pwd`/source - +if [[ $1 == "dev" ]];then + tl_sourcedir=${this_dir}/source +else + . ${this_dir}/variables.conf + tl_sourcedir=${this_dir}/texlive-${TL_PUBDATE}-source +fi + echo "" echo " TeX Live for OpenBSD built script " echo "" @@ -13,11 +18,10 @@ echo "Please specify whether you also want to include xindy, context" echo "and asymptote in the process." echo "" -echo "Do I have to get the latest development sources? (You ought to" -echo "have done so before launching this script.)" +echo "Do I have to get the sources? (You ought to have done so before launching this script.)" read get_dev_src?'[y/n] ' if [[ ${get_dev_src} == "y" ]]; then - ./checkout-tl.sh && echo "... Ok." + ./checkout-tl.sh $1 && echo "... Ok." fi echo "Include clisp and xindy?" -- cgit v1.2.3