freedomboneeee/debian.sh

31 lines
815 B
Bash
Raw Normal View History

2015-01-16 22:45:28 +01:00
#!/bin/bash
APP=freedombone
PREV_VERSION=1.00
VERSION=1.00
ARCH_TYPE="all"
DIR=${APP}-${VERSION}
#update version numbers automatically - so you don't have to
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone
2015-01-16 23:55:18 +01:00
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-prep
2015-01-16 23:56:17 +01:00
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-tordongle
2015-01-16 22:45:28 +01:00
# change the parent directory name to debian format
mv ../${APP} ../${DIR}
# Create a source archive
make clean
make source
# Build the package
dpkg-buildpackage -F
# sign files
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
# restore the parent directory name
mv ../${DIR} ../${APP}