summaryrefslogtreecommitdiffstats
blob: a61201d440d5d482835c193641214af0c4eef01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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 xenial yakkety jessie sid; do
#  for arch in amd64; do
#   pbuilder-dist $distro $arch create
#  done
# done

export SWIFT_DEBUILD_FLAGS="-S"
export SWIFT_FORCE_LUCID="yep"

#./package.sh

#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

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