diff options
author | Robert Alessi <alessi@robertalessi.net> | 2024-03-15 14:50:24 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2024-03-15 14:50:24 +0100 |
commit | c716a2e3c629af43e33750d996c4d344da094134 (patch) | |
tree | 0f17f762e6d7f027827ebc2cfee2c4302e566cca | |
parent | 888230fbdfc29c241ab50f6ee721a07abd56dc13 (diff) | |
download | texlive-openbsd-c716a2e3c629af43e33750d996c4d344da094134.tar.gz |
use svn to checkout current/dev sources instead of ctan
-rwxr-xr-x | checkout-tl.sh | 39 | ||||
-rwxr-xr-x | tl-build.sh | 7 | ||||
-rw-r--r-- | variables.conf | 2 |
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 |
2 | PWD=$(pwd) | ||
3 | |||
4 | . ${PWD}/variables.conf | ||
5 | |||
6 | function check_branch { | ||
7 | URL=$(svn info | grep ^URL | sed 's/.*: //') | ||
8 | } | ||
9 | |||
2 | if [[ $1 == "dev" ]];then | 10 | if [[ $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 . |
4 | else | 12 | else |
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} | ||
12 | fi | 37 | fi |
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 | ||
5 | this_dir=`pwd` | 5 | this_dir=`pwd` |
6 | if [[ $1 == "dev" ]];then | 6 | tl_sourcedir=${this_dir}/source |
7 | tl_sourcedir=${this_dir}/source | ||
8 | else | ||
9 | . ${this_dir}/variables.conf | ||
10 | tl_sourcedir=${this_dir}/texlive-${TL_PUBDATE}-source | ||
11 | fi | ||
12 | 7 | ||
13 | echo "" | 8 | echo "" |
14 | echo " TeX Live for OpenBSD built script " | 9 | echo " 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 | ||