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 --- checkout-tl.sh | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'checkout-tl.sh') diff --git a/checkout-tl.sh b/checkout-tl.sh index 41caac4..4d42437 100755 --- a/checkout-tl.sh +++ b/checkout-tl.sh @@ -1,19 +1,12 @@ #!/bin/sh -#rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source . -PWD=`pwd` -REV=70573 -if [[ ! -d source ]];then - svn co svn://tug.org/texlive/trunk/Build/source@${REV} +if [[ $1 == "dev" ]];then + rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source . else - cd source - svn update -r ${REV} - if [[ $? -ne 0 ]];then - echo "Please remove or rename the source/ directory" - echo "and re-run this command." - exit 1 - fi - svn revert --recursive . - svn status --no-ignore | grep '^[?I]' | sed "s/^[?I] //" \ - | xargs -I{} rm -rf "{}" + # source variables + PWD=$(pwd) + TMPDIR=$(mktemp -d) + . ${PWD}/variables.conf + [[ -d "texlive-${TL_PUBDATE}-source" ]] && rm -rf texlive-${TL_PUBDATE}-source + wget --show-progress https://mirrors.ctan.org/systems/texlive/Source/texlive-${TL_PUBDATE}-source.tar.xz -P ${TMPDIR}/ + xzcat ${TMPDIR}/texlive-${TL_PUBDATE}-source.tar.xz | tar xf - fi -cd ${PWD} -- cgit v1.2.3