~doctormo/genetic-wallpapers/stable

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
#!/bin/bash

# Builds the master package

BUILDIR='.build'
mkdir -p $BUILDIR

cd ../
NAME=genetic-wallpapers
VERSION=`./setup.py --version`

./setup.py sdist

mv dist/${NAME}-${VERSION}.tar.gz $OLDPWD/$BUILDIR/${NAME}_${VERSION}.orig.tar.gz

cd $OLDPWD/$BUILDIR

tar xzvf ${NAME}_${VERSION}.orig.tar.gz

cd ${NAME}-${VERSION}
cp -R ../../../debian .
dch -v $VERSION-1ubuntu0 --distribution UNRELEASED "Automatic PPA Build"

for RELEASE in lucid maverick natty; do
  dch --increment --distribution $RELEASE "Automatic PPA Build for $RELEASE"
  debuild -S #&> /dev/null
  echo "Built $RELEASE for $NAME $VERSION"
done;