aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheckout-tl.sh25
-rwxr-xr-xtl-build.sh14
2 files changed, 18 insertions, 21 deletions
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 @@
1#!/bin/sh 1#!/bin/sh
2#rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source . 2if [[ $1 == "dev" ]];then
3PWD=`pwd` 3 rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source .
4REV=70573
5if [[ ! -d source ]];then
6 svn co svn://tug.org/texlive/trunk/Build/source@${REV}
7else 4else
8 cd source 5 # source variables
9 svn update -r ${REV} 6 PWD=$(pwd)
10 if [[ $? -ne 0 ]];then 7 TMPDIR=$(mktemp -d)
11 echo "Please remove or rename the source/ directory" 8 . ${PWD}/variables.conf
12 echo "and re-run this command." 9 [[ -d "texlive-${TL_PUBDATE}-source" ]] && rm -rf texlive-${TL_PUBDATE}-source
13 exit 1 10 wget --show-progress https://mirrors.ctan.org/systems/texlive/Source/texlive-${TL_PUBDATE}-source.tar.xz -P ${TMPDIR}/
14 fi 11 xzcat ${TMPDIR}/texlive-${TL_PUBDATE}-source.tar.xz | tar xf -
15 svn revert --recursive .
16 svn status --no-ignore | grep '^[?I]' | sed "s/^[?I] //" \
17 | xargs -I{} rm -rf "{}"
18fi 12fi
19cd ${PWD}
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 @@
3# Public domain. Originally written 2005 by Karl Berry. 3# Public domain. Originally written 2005 by Karl Berry.
4 4
5this_dir=`pwd` 5this_dir=`pwd`
6tl_sourcedir=`pwd`/source 6if [[ $1 == "dev" ]];then
7 7 tl_sourcedir=${this_dir}/source
8else
9 . ${this_dir}/variables.conf
10 tl_sourcedir=${this_dir}/texlive-${TL_PUBDATE}-source
11fi
12
8echo "" 13echo ""
9echo " TeX Live for OpenBSD built script " 14echo " TeX Live for OpenBSD built script "
10echo "" 15echo ""
@@ -13,11 +18,10 @@ echo "Please specify whether you also want to include xindy, context"
13echo "and asymptote in the process." 18echo "and asymptote in the process."
14echo "" 19echo ""
15 20
16echo "Do I have to get the latest development sources? (You ought to" 21echo "Do I have to get the sources? (You ought to have done so before launching this script.)"
17echo "have done so before launching this script.)"
18read get_dev_src?'[y/n] ' 22read get_dev_src?'[y/n] '
19if [[ ${get_dev_src} == "y" ]]; then 23if [[ ${get_dev_src} == "y" ]]; then
20 ./checkout-tl.sh && echo "... Ok." 24 ./checkout-tl.sh $1 && echo "... Ok."
21fi 25fi
22 26
23echo "Include clisp and xindy?" 27echo "Include clisp and xindy?"