Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-10-01 20:59:58 +0200
committerMichal Suchanek <msuchanek@suse.de>2018-10-01 21:02:37 +0200
commit1d17b6db6fa50bd18e7296cc6e69bdc33890f339 (patch)
tree489ba0304a091e42f9b929f6a1429eae576886bd
parent18a9758c2e81c5797f5709e5bc573ccc7dc24a9c (diff)
tar-up.sh: allow packaging multiple architectures.
tar-up.sh has -a option to generate package for a particular architecture. Extend the -a option processing to accept comma separated list of architectures. Also fix a bug with ppc64 selecting both ppc64 and ppc64le.
-rwxr-xr-xscripts/tar-up.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tar-up.sh b/scripts/tar-up.sh
index 54014a8c99..90c3f3ab0a 100755
--- a/scripts/tar-up.sh
+++ b/scripts/tar-up.sh
@@ -198,7 +198,7 @@ CLEANFILES=("${CLEANFILES[@]}" "$tmpdir")
cp -p rpm/* config.conf supported.conf doc/* $build_dir
match="${flavor:+\\/$flavor$}"
-match="${arch:+^+${arch}${match:+.*}}${match}"
+match="${arch:+^+\\($(echo -n "${arch}" | sed 's/[, ]\+/\\\|/g')\\)\\>${match:+.*}}${match}"
[ -n "$match" ] && sed -i "/^$\|\s*#\|${match}/b; s/\(.*\)/#### \1/" $build_dir/config.conf
if test -e misc/extract-modaliases; then
cp misc/extract-modaliases $build_dir