Split GetStatus JVM command.
[barry/progweb.git] / maintainer / ppa_build.sh
blob62a103cad3740606a2cb9ba8b146717853bde372
1 #!/bin/bash
3 # Written by Martin Owens doctormo@gmail.com,
4 # License: Public Domain
5 # Revision: 2
8 VERSION=0.16
9 RELEASE=jaunty
10 PPA=ppa:doctormo/barry-snapshot
11 DIR=barry-$VERSION
12 GIT_DIR=barry-git
13 #GIT_URL=git://repo.or.cz/barry.git
14 GIT_URL=git://barry.git.sourceforge.net/gitroot/barry/barry
16 [ -d $DIR ] && rm -fr $DIR
17 [ -d $GIT_DIR ] && (cd $GIT_DIR && git pull origin) || (git clone $GIT_URL $GIT_DIR)
19 # Get a copy of the code
20 rm barry_$VERSION.orig.tar.gz
21 cd $GIT_DIR
22 git archive --prefix=$DIR/ master > ../barry_$VERSION.orig.tar
23 cd ../
24 tar xvf barry_$VERSION.orig.tar
25 gzip barry_$VERSION.orig.tar
27 # Go into the code
28 cd $DIR
30 # Generate a new changelog file
31 rm debian/changelog
32 DATEVER=$VERSION-0git`date +%Y%m%d%S`
33 dch --create --package=barry -v $DATEVER --distribution $RELEASE "Weekly GIT Build for $PPA"
35 # Build our debian source package
36 debuild -S
38 # Put our debian source package into launchpad
39 cd ../
40 dput $PPA barry_${DATEVER}_source.changes