aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Doppler <dopsi@dopsi.ch>2017-08-08 12:37:59 +0200
committerSimon Doppler <dopsi@dopsi.ch>2017-08-08 12:37:59 +0200
commit01578696cb5b8fc18f36f1b639399c9c3c0ead36 (patch)
tree01ae2eea57ee9f416b4053753509f09f30a15e8a
parented9232d04bb4b8fd175f6c3002cf4fd265c17af2 (diff)
downloadal32-torrent-01578696cb5b8fc18f36f1b639399c9c3c0ead36.tar.gz
al32-torrent-01578696cb5b8fc18f36f1b639399c9c3c0ead36.tar.xz
al32-torrent-01578696cb5b8fc18f36f1b639399c9c3c0ead36.zip
All architecture selection
-rw-r--r--README.md3
-rw-r--r--al32-mktorrent.sh6
2 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 066aeee..9cc69ee 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,9 @@ along with the RSS feeds (for [i686](https://static.dopsi.ch/al32/feed_i686.rss)
## Usage
- al32-mktorrent.sh [ -d date ]
+ al32-mktorrent.sh [ -d date ] [ arch... ]
+If no arch is specified both `i686` and `dual` will be generated.
If no date is specified, the script will prompt for a date during the process.
## Features
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index b5aaff7..68ea265 100644
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -17,7 +17,7 @@ set -euo pipefail
function join_by { local IFS="$1"; shift; echo "$*"; }
usage () {
- echo "Usage: $0 [-d date]"
+ echo "Usage: $0 [-d date] [arch...]"
}
fg_green="\033[32m"
@@ -112,6 +112,10 @@ while getopts "d:h" o; do
done
shift $((OPTIND-1))
+if [ "$#" -gt 0 ] ; then
+ architectures=($@)
+fi
+
[ -z "$iso_date" ] && read -r -p "Date of the ISO: " iso_date
for a in "${architectures[@]}" ; do