This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-01/debian.sh

32 lines
887 B
Bash
Raw Normal View History

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-03 21:13:52 +02:00
PREV_VERSION=0.3.2
2013-06-03 17:54:29 +02:00
VERSION=0.3.2
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
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz