PyBitmessage/debian.sh

32 lines
887 B
Bash
Raw Normal View History

2013-04-01 19:23:32 +00: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 18:22:13 +00:00
PREV_VERSION=0.3.3
VERSION=0.3.4
2013-04-01 19:23:32 +00:00
ARCH_TYPE=all
2013-06-03 19:13:52 +00: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 19:23:32 +00:00
# Create a source archive
make clean
2013-06-03 19:13:52 +00:00
# change the directory name to pybitmessage-version
mv ../PyBitmessage ../${APP}-${VERSION}
2013-04-01 19:23:32 +00:00
make source
# Build the package
2013-06-03 19:13:52 +00:00
dpkg-buildpackage -A
# change the directory name back
mv ../${APP}-${VERSION} ../PyBitmessage
2013-04-01 19:23:32 +00:00
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz