diff options
| author | Thanos Doukoudakis <thanos.doukoudakis@isode.com> | 2017-12-12 16:24:53 (GMT) |
|---|---|---|
| committer | Thanos Doukoudakis <thanos.doukoudakis@isode.com> | 2017-12-14 12:32:16 (GMT) |
| commit | 70509d57ea60d41785bbcea6b4e01fd36f5d3d57 (patch) | |
| tree | 01dd043ce848e7081417c54244852110c930c86c /Swift/Packaging/Debian/package_all_platforms.sh | |
| parent | 5e28c0b639acb725b492044208caae468d5635e8 (diff) | |
| download | swift-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-x | Swift/Packaging/Debian/package_all_platforms.sh | 10 |
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" | |||
| 24 | unset SWIFT_FORCE_LUCID | 24 | unset SWIFT_FORCE_LUCID |
| 25 | ./package.sh | 25 | ./package.sh |
| 26 | 26 | ||
| 27 | for distro in xenial yakkety jessie sid; do | 27 | if [ -z ${SWIFT_PACKAGE_PLATFORMS+x} ]; |
| 28 | then | ||
| 29 | platformsarray=( xenial yakkety jessie sid ) | ||
| 30 | else | ||
| 31 | platformsarray=( $SWIFT_PACKAGE_PLATFORMS ) | ||
| 32 | fi | ||
| 33 | |||
| 34 | for 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 |
| 31 | done | 38 | done |
| 32 | |||
Swift