2013-04-01 21:23:32 +02:00
|
|
|
# To build a debian package first ensure that the code exists
|
|
|
|
# within a directory called pybitmessage-x.x.x (where the x's
|
|
|
|
# are the version number), make sure that the VERSION parameter
|
|
|
|
# within debian/rules and this script are correct, then run
|
|
|
|
# this script.
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
APP=pybitmessage
|
2013-06-26 20:22:13 +02:00
|
|
|
PREV_VERSION=0.3.3
|
|
|
|
VERSION=0.3.4
|
2013-06-30 17:16:41 +02:00
|
|
|
RELEASE=1
|
2013-04-01 21:23:32 +02:00
|
|
|
ARCH_TYPE=all
|
|
|
|
|
2013-06-03 21:13:52 +02:00
|
|
|
#update version numbers automatically - so you don't have to
|
|
|
|
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
|
|
|
|
sed -i 's/'''${PREV_VERSION}'''/'''${VERSION}'''/g' src/shared.py
|
|
|
|
|
2013-04-01 21:23:32 +02:00
|
|
|
# Create a source archive
|
|
|
|
make clean
|
2013-06-03 21:13:52 +02:00
|
|
|
# change the directory name to pybitmessage-version
|
|
|
|
mv ../PyBitmessage ../${APP}-${VERSION}
|
2013-04-01 21:23:32 +02:00
|
|
|
make source
|
|
|
|
|
|
|
|
# Build the package
|
2013-06-03 21:13:52 +02:00
|
|
|
dpkg-buildpackage -A
|
|
|
|
|
|
|
|
# change the directory name back
|
|
|
|
mv ../${APP}-${VERSION} ../PyBitmessage
|
2013-04-01 21:23:32 +02:00
|
|
|
|
2013-06-30 17:16:41 +02:00
|
|
|
gpg -ba ../${APP}_${VERSION}-${RELEASE}_${ARCH_TYPE}.deb
|
2013-04-01 21:23:32 +02:00
|
|
|
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
|