summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-tlcritical
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tl-update-tlcritical')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-tlcritical22
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/tlpkg/bin/tl-update-tlcritical b/Master/tlpkg/bin/tl-update-tlcritical
index c67617e1155..d172d196369 100755
--- a/Master/tlpkg/bin/tl-update-tlcritical
+++ b/Master/tlpkg/bin/tl-update-tlcritical
@@ -2,9 +2,10 @@
# $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.
+# packages. Listed both here and in TLConfig.pm, unfortunately.
# Run from cron.tl.
+opt_do_containers=true
tlcrit=/home/ftp/texlive/tlcritical
recreate=
@@ -12,6 +13,7 @@ while test $# -gt 0; do
case $1 in
--tlcrit) shift; tlcrit=$1;;
--recreate) recreate=--recreate;;
+ --no-containers) opt_do_containers=false;;
--help) echo "Please read the script, sorry."; exit 0;;
--*) echo "$0: unrecognized option: $1" >&2; exit 1;;
*) echo "$0: too many arguments: $1" >&2; exit 1;;
@@ -76,11 +78,18 @@ if test -n "$recreate"; then
rm -rf $tlcrit/[^R]* # except README
fi
-# update normal containers.
-echo "$0: running tl-update-containers (for critical packages)..."
-tl-update-containers -location $tlcrit $recreate -all \
- 00texlive.installation 00texlive.config texlive.infra tlperl.win32 \
- $moredis
+if $opt_do_containers; then
+ # update normal containers.
+ echo "$0: running tl-update-containers (for critical packages)..."
+ tl-update-containers -location $tlcrit $recreate -all \
+ 00texlive.installation 00texlive.config texlive.infra tlperl.win32 \
+ $moredis
+else
+ # this is an option so that if the repository already contains
+ # up-to-date containers, e.g., a test setup, we don't recreate them.
+ # (See doc/packages.txt.)
+ echo "$0: skipping tl-update-containers."
+fi
# update Unix disaster recovery.
echo "$0: running tl-makeself-from-tlnet $tlcrit..."
@@ -94,4 +103,5 @@ makensis $TMPDIR/updater.nsi >$TMPDIR/makensis.log
rm -f $TMPDIR/updater.nsi
do_updater exe
+echo $tlcrit:
ls -lt $tlcrit