summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-tlcritical
blob: d5dfcadda62185f3e1b7e543e20a8ca6ab3d41a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh -e
# $Id$
# Public domain.  Originally written 2008, Karl Berry.
# Update the tlcritical mini-repository on tug with the critical
# packages.  Also listed in tl-update-containers, unfortunately.

mydir=`cd \`dirname $0\` && pwd`
Master=`cd $mydir/../.. && pwd`

cd ${TMPDIR-/tmp}
tlcrit=/home/ftp/texlive/tlcritical

# update normal containers.
echo "$0: running tl-update-containers (for critical packages)..."
$mydir/tl-update-containers \
  -location $tlcrit -all \
  00texlive-installation.config 00texlive.config bin-texlive texlive.infra

# update Unix disaster recovery.
echo "$0: running tl-makeself-from-tlnet..."
$mydir/tl-makeself-from-tlnet $tlcrit
rm -f $tlcrit/update-*.sh
mv update-*.sh $tlcrit
(cd $tlcrit && ln -sv update-*.sh update-tlmgr-latest.sh)

# update the Windows updater executable.
echo "$0: running tl-update-nsis..."
$mydir/tl-update-nsis >/tmp/updater.nsi
makensis /tmp/updater.nsi >/tmp/makensis.log
rm -f $tlcrit/update-*.exe /tmp/updater.nsi
mv update-*.exe $tlcrit
(cd $tlcrit && ln -sv update-*.exe update-tlmgr-latest.exe)