From 1b5d1d7af3569fe3e1f9e36ade8f1b6202829ba1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 3 Jan 2016 23:15:10 +0000 Subject: if --recreate, clean $tlcrit git-svn-id: svn://tug.org/texlive/trunk@39267 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-update-tlcritical | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Master/tlpkg/bin/tl-update-tlcritical b/Master/tlpkg/bin/tl-update-tlcritical index dc711d5ba43..37bf367117a 100755 --- a/Master/tlpkg/bin/tl-update-tlcritical +++ b/Master/tlpkg/bin/tl-update-tlcritical @@ -13,7 +13,7 @@ while test $# -gt 0; do --recreate) recreate=--recreate;; --help) echo "Please read the script, sorry."; exit 0;; --*) echo "$0: unrecognized option: $1" >&2; exit 1;; - *) echo "$0: too many parameters: $1" >&2; exit 1;; + *) echo "$0: too many arguments: $1" >&2; exit 1;; esac shift done @@ -25,11 +25,9 @@ fi mydir=`cd \`dirname $0\` && pwd` PATH=$mydir:/usr/local/gnu/bin:/usr/local/bin:$PATH # sha256sum+makensis on tug - master=`cd $mydir/../.. && pwd` TMPDIR=${TMPDIR-/tmp} - cd $TMPDIR # function to update one of recovery scripts (sh or exe) in tlcritical. @@ -58,6 +56,11 @@ moredis=`grep -v '^\s*#' $master/tlpkg/dev/tlnet-disabled-packages.txt | \ sed -e 's/\s*$//'` echo "$0: additional packages from via tlnet-disabled-packages.txt: $moredis" +if test -n "$recreate"; then + echo "$0: $recreate, so cleaning $tlcrit..." + 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 \ -- cgit v1.2.3