blob: aa88d91815f1c6042c77ad789d1d5d6584561add (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/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`
PATH=$mydir:/usr/local/gnu/bin:/usr/local/bin:$PATH # sha256sum+makensis on tug
cd ${TMPDIR-/tmp}
tlcrit=/home/ftp/texlive/tlcritical
# function to update one of recovery scripts (sh or exe) in tlcritical.
#
do_updater ()
{
type=$1 # sh or exe
newfile=`ls update-*.$type`
if test -z "$newfile"; then
echo "$0: no new file update-*.$type in `pwd`" >&2
exit 1
fi
rm -f $tlcrit/update-*.$type* # rm old file and checksum
mv $newfile $tlcrit # move new file
#
# make checksum for new file
(cd $tlcrit && sha256sum $newfile >$newfile.sha256)
#
# link to generic names
(cd $tlcrit && ln -s $newfile update-tlmgr-latest.$type)
(cd $tlcrit && ln -s $newfile.sha256 update-tlmgr-latest.$type.sha256)
}
# update normal containers.
echo "$0: running tl-update-containers (for critical packages)..."
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..."
tl-makeself-from-tlnet $tlcrit
do_updater sh
# update the Windows updater executable.
echo "$0: running tl-update-nsis..."
tl-update-nsis >/tmp/updater.nsi
makensis /tmp/updater.nsi >/tmp/makensis.log
rm -f /tmp/updater.nsi
do_updater exe
ls -lt $tlcrit
|