diff options
Diffstat (limited to 'Swift/Packaging/Debian/package_all_platforms.sh')
-rwxr-xr-x | Swift/Packaging/Debian/package_all_platforms.sh | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/Swift/Packaging/Debian/package_all_platforms.sh b/Swift/Packaging/Debian/package_all_platforms.sh index 47c6b82..afd0621 100755 --- a/Swift/Packaging/Debian/package_all_platforms.sh +++ b/Swift/Packaging/Debian/package_all_platforms.sh @@ -1,8 +1,11 @@ #!/bin/bash +# Quit immediately if any part fails +set -e + ## To get to this stage you need to already have the pbuilder-dist stuff installed, and have already run: -# for distro in squeeze sid lucid maverick; do -# for arch in i386 amd64; do +# for distro in xenial yakkety jessie sid; do +# for arch in amd64; do # pbuilder-dist $distro $arch create # done # done @@ -10,20 +13,26 @@ export SWIFT_DEBUILD_FLAGS="-S" export SWIFT_FORCE_LUCID="yep" -./package.sh +#./package.sh -for distro in lucid squeeze; do - for arch in i386 amd64; do - pbuilder-dist $distro $arch build *.dsc - done -done +#for distro in lucid squeeze; do +# for arch in i386 amd64; do +# pbuilder-dist $distro $arch build *.dsc +# done +#done unset SWIFT_FORCE_LUCID ./package.sh -for distro in maverick sid; do - for arch in i386 amd64; do +if [ -z ${SWIFT_PACKAGE_PLATFORMS+x} ]; +then + platformsarray=( xenial artful jessie stretch 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 - |