summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorThanos Doukoudakis <thanos.doukoudakis@isode.com>2017-12-12 16:24:53 (GMT)
committerThanos Doukoudakis <thanos.doukoudakis@isode.com>2017-12-14 12:32:16 (GMT)
commit70509d57ea60d41785bbcea6b4e01fd36f5d3d57 (patch)
tree01dd043ce848e7081417c54244852110c930c86c /Swift
parent5e28c0b639acb725b492044208caae468d5635e8 (diff)
downloadswift-70509d57ea60d41785bbcea6b4e01fd36f5d3d57.zip
swift-70509d57ea60d41785bbcea6b4e01fd36f5d3d57.tar.bz2
Will allow defining packaging platforms
This patch introduces SWIFT_PACKAGE_PLATFORMS variable which defines the platforms that package_all_platforms.sh will package Swift. If not defined, it will default to xenial yakkety jessie sid. Test-Information Tested the script on Ubuntu 16.04 when the variable is/not defined Change-Id: I9ba4fbd68ad18e28cbd2d8c1feb50e6d63e44e06
Diffstat (limited to 'Swift')
-rwxr-xr-xSwift/Packaging/Debian/package_all_platforms.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/Swift/Packaging/Debian/package_all_platforms.sh b/Swift/Packaging/Debian/package_all_platforms.sh
index 097fe38..a61201d 100755
--- a/Swift/Packaging/Debian/package_all_platforms.sh
+++ b/Swift/Packaging/Debian/package_all_platforms.sh
@@ -24,9 +24,15 @@ export SWIFT_FORCE_LUCID="yep"
unset SWIFT_FORCE_LUCID
./package.sh
-for distro in xenial yakkety jessie sid; do
+if [ -z ${SWIFT_PACKAGE_PLATFORMS+x} ];
+then
+ platformsarray=( xenial yakkety jessie sid )
+else
+ platformsarray=( $SWIFT_PACKAGE_PLATFORMS )
+fi
+
+for distro in "${platformsarray[@]}"; do
for arch in amd64; do
pbuilder-dist $distro $arch build *.dsc
done
done
-