aboutsummaryrefslogtreecommitdiff
path: root/checkout-tl.sh
blob: 4d42437ac8061f595481fe4741da5248a124c1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
if [[ $1 == "dev"  ]];then
    rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source .
else
    # 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