summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-01-03 23:15:10 +0000
committerKarl Berry <karl@freefriends.org>2016-01-03 23:15:10 +0000
commit1b5d1d7af3569fe3e1f9e36ade8f1b6202829ba1 (patch)
tree1af38ac1080917770c996fe3e38972dedde8bffe /Master/tlpkg
parent281228b1b6025a3157d88d7331e5b306160b9462 (diff)
if --recreate, clean $tlcrit
git-svn-id: svn://tug.org/texlive/trunk@39267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-tlcritical9
1 files 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 \