summaryrefslogtreecommitdiff
path: root/update-website
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-15 08:42:20 +0200
committerErich Eckner <git@eckner.net>2018-05-15 08:42:20 +0200
commitea2b11b9028a8281c20ddd5af1eac7c7bfeef827 (patch)
treee103ed3c123843c23e4047a24fe895b55a28429d /update-website
parentf0f38c7807dbbd7eb8e34b6927a7a486a3bb7d8d (diff)
downloadreleng-ea2b11b9028a8281c20ddd5af1eac7c7bfeef827.tar.xz
update-website: inverse option --torrent-only to --update-iso
Diffstat (limited to 'update-website')
-rwxr-xr-xupdate-website14
1 files changed, 7 insertions, 7 deletions
diff --git a/update-website b/update-website
index fb58871..e532769 100755
--- a/update-website
+++ b/update-website
@@ -24,8 +24,8 @@ usage() {
>&2 echo ' Set website-dir to $dir.'
>&2 echo ' --mirror-dir $dir:'
>&2 echo ' Set mirror-dir to $dir.'
- >&2 echo ' --torrent-only:'
- >&2 echo ' Update only torrent related data.'
+ >&2 echo ' --update-iso:'
+ >&2 echo ' Update information about iso, too.'
[ -z "$1" ] && exit 1 || exit "$1"
}
@@ -38,7 +38,7 @@ eval set -- "$(
--long torrent-seed-dual: \
--long mirror-dir: \
--long website-dir: \
- --long torrent-only \
+ --long update-iso \
-n "$(basename "$0")" -- "$@" || \
echo usage
)"
@@ -112,12 +112,12 @@ while [ $# -gt 0 ]; do
website_dir="$1"
echo "$website_dir" > "${tmp_dir}/website_dir.set"
;;
- '--torrent-only')
- if [ -s "${tmp_dir}/torrent_only.set" ]; then
+ '--update-iso')
+ if [ -s "${tmp_dir}/update_iso.set" ]; then
printf 'Option %s given multiple times.\n' "$1"
usage
fi
- echo "true" > "${tmp_dir}/torrent_only.set"
+ echo "true" > "${tmp_dir}/update_iso.set"
;;
'--')
shift
@@ -234,7 +234,7 @@ for arch in "${!desc[@]}"; do
' "${website_dir}/download/index.html"
done
-if [ -s "${tmp_dir}/torrent_only.set" ]; then
+if [ ! -s "${tmp_dir}/update_iso.set" ]; then
exit
fi