summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2018-02-12 14:44:00 +0900
committerNorbert Preining <norbert@preining.info>2018-02-12 14:44:00 +0900
commit5a993b26c76714f0810fdc7e3ae7bdc5eb1afd10 (patch)
treeedfb7f15969e060493d059289a9e4308e2561ea2 /update.sh
parent42241d8588569a2cf3304c9c7a01152d73b04aed (diff)
update.sh: support -no-sign
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 6738950a..27a1c366 100755
--- a/update.sh
+++ b/update.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# (c) 2016-2017 Norbert Preining
+# (c) 2016-2018 Norbert Preining
# License: GPLv3+
#
# USAGE:
@@ -18,6 +18,12 @@ TLCATALOGUE=${TLCATALOGUE:-/home/norbert/Development/TeX/texcatalogue-svn}
# we don't do TeX Catalogue updates
#unset TEX_CATALOGUE
+do_sign=true
+if [ "$1" = "-no-sign" ] ; then
+ do_sign=false
+ shift
+fi
+
do_tlpdb=false
do_container=false
do_collection=false
@@ -70,11 +76,16 @@ if $do_tlpdb ; then
--master=`pwd`
fi
+if $do_sign ; then
+ gpgcmd="-gpgcmd `pwd`/tl-sign-file"
+else
+ gpgcmd=-no-sign
+fi
if $do_container ; then
$TLCHECKOUT/Master/tlpkg/bin/tl-update-containers \
-master `pwd` \
-location $TLNETDEST \
- -gpgcmd `pwd`/tl-sign-file \
+ $gpgcmd \
-all # sometimes we need -recreate
grep ^name tlpkg/texlive.tlpdb | grep -v 00texlive | grep -v '\.' | awk '{print$2}' | sort > $TLNETDEST/packages.txt