summaryrefslogtreecommitdiffstats
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/Packaging/Debian/package_all_platforms.sh
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/Packaging/Debian/package_all_platforms.sh')
-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"
24unset SWIFT_FORCE_LUCID 24unset SWIFT_FORCE_LUCID
25./package.sh 25./package.sh
26 26
27for distro in xenial yakkety jessie sid; do 27if [ -z ${SWIFT_PACKAGE_PLATFORMS+x} ];
28then
29 platformsarray=( xenial yakkety jessie sid )
30else
31 platformsarray=( $SWIFT_PACKAGE_PLATFORMS )
32fi
33
34for distro in "${platformsarray[@]}"; do
28 for arch in amd64; do 35 for arch in amd64; do
29 pbuilder-dist $distro $arch build *.dsc 36 pbuilder-dist $distro $arch build *.dsc
30 done 37 done
31done 38done
32