aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-15 14:50:24 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-15 14:50:24 +0100
commitc716a2e3c629af43e33750d996c4d344da094134 (patch)
tree0f17f762e6d7f027827ebc2cfee2c4302e566cca
parent888230fbdfc29c241ab50f6ee721a07abd56dc13 (diff)
downloadtexlive-openbsd-c716a2e3c629af43e33750d996c4d344da094134.tar.gz
use svn to checkout current/dev sources instead of ctan
-rwxr-xr-xcheckout-tl.sh39
-rwxr-xr-xtl-build.sh7
-rw-r--r--variables.conf2
3 files changed, 34 insertions, 14 deletions
diff --git a/checkout-tl.sh b/checkout-tl.sh
index 4d42437..ee3795c 100755
--- a/checkout-tl.sh
+++ b/checkout-tl.sh
@@ -1,12 +1,37 @@
1#!/bin/sh 1#!/bin/sh
2PWD=$(pwd)
3
4. ${PWD}/variables.conf
5
6function check_branch {
7 URL=$(svn info | grep ^URL | sed 's/.*: //')
8}
9
2if [[ $1 == "dev" ]];then 10if [[ $1 == "dev" ]];then
3 rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source . 11 rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source .
4else 12else
5 # source variables 13 if [[ -d ${PWD}/source ]];then
6 PWD=$(pwd) 14 cd ${PWD}/source
7 TMPDIR=$(mktemp -d) 15 svn info 2>/dev/null
8 . ${PWD}/variables.conf 16 if [[ $? -ne 0 ]];then
9 [[ -d "texlive-${TL_PUBDATE}-source" ]] && rm -rf texlive-${TL_PUBDATE}-source 17 cd ${PWD}
10 wget --show-progress https://mirrors.ctan.org/systems/texlive/Source/texlive-${TL_PUBDATE}-source.tar.xz -P ${TMPDIR}/ 18 rm -rf ${PWD}/source
11 xzcat ${TMPDIR}/texlive-${TL_PUBDATE}-source.tar.xz | tar xf - 19 svn co --config-option config:miscellany:use-commit-times=yes \
20 svn://tug.org/texlive/branches/branch${TL_BRANCH}/Build/source
21 else
22 check_branch
23 if [[ ${URL} == "svn://tug.org/texlive/branches/branch${TL_BRANCH}/Build/source" ]];then
24 svn revert -R .
25 svn cleanup . --remove-unversioned --remove-ignored
26 svn update
27 else
28 echo "I don't know what to do with your source/ directory. Please rename it"
29 echo "or remove it then re-run this command."
30 fi
31 fi
32 else
33 svn co --config-option config:miscellany:use-commit-times=yes \
34 svn://tug.org/texlive/branches/branch${TL_BRANCH}/Build/source
35 fi
36 cd ${PWD}
12fi 37fi
diff --git a/tl-build.sh b/tl-build.sh
index 84d0803..5cef9a1 100755
--- a/tl-build.sh
+++ b/tl-build.sh
@@ -3,12 +3,7 @@
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`
6if [[ $1 == "dev" ]];then 6tl_sourcedir=${this_dir}/source
7 tl_sourcedir=${this_dir}/source
8else
9 . ${this_dir}/variables.conf
10 tl_sourcedir=${this_dir}/texlive-${TL_PUBDATE}-source
11fi
12 7
13echo "" 8echo ""
14echo " TeX Live for OpenBSD built script " 9echo " TeX Live for OpenBSD built script "
diff --git a/variables.conf b/variables.conf
index a8ecdcb..6247164 100644
--- a/variables.conf
+++ b/variables.conf
@@ -1 +1 @@
TL_PUBDATE=20240311 \ No newline at end of file TL_BRANCH=2024