debian build script fails more gracefully
This commit is contained in:
parent
cdba99d24e
commit
d4fcec5b9f
24
debian.sh
24
debian.sh
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
APP=freedombone
|
APP=freedombone
|
||||||
PREV_VERSION=1.00
|
PREV_VERSION=1.00
|
||||||
VERSION=1.00
|
VERSION=1.01
|
||||||
ARCH_TYPE="all"
|
ARCH_TYPE="all"
|
||||||
DIR=${APP}-${VERSION}
|
DIR=${APP}-${VERSION}
|
||||||
|
|
||||||
|
@ -13,7 +13,10 @@ sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-
|
||||||
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-client
|
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-client
|
||||||
|
|
||||||
# change the parent directory name to debian format
|
# change the parent directory name to debian format
|
||||||
|
cp releases/* ..
|
||||||
|
mv releases /tmp/freedombone
|
||||||
mv ../${APP} ../${DIR}
|
mv ../${APP} ../${DIR}
|
||||||
|
mkdir /tmp/freedombone
|
||||||
|
|
||||||
# Create a source archive
|
# Create a source archive
|
||||||
make clean
|
make clean
|
||||||
|
@ -21,10 +24,29 @@ make source
|
||||||
|
|
||||||
# Build the package
|
# Build the package
|
||||||
dpkg-buildpackage -F
|
dpkg-buildpackage -F
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
mv ../${DIR} ../${APP}
|
||||||
|
mv /tmp/freedombone/releases .
|
||||||
|
exit 478
|
||||||
|
fi
|
||||||
|
|
||||||
# sign files
|
# sign files
|
||||||
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
|
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
mv ../${DIR} ../${APP}
|
||||||
|
mv /tmp/freedombone/releases .
|
||||||
|
exit 639
|
||||||
|
fi
|
||||||
|
|
||||||
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
|
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
mv ../${DIR} ../${APP}
|
||||||
|
mv /tmp/freedombone/releases .
|
||||||
|
exit 592
|
||||||
|
fi
|
||||||
|
|
||||||
# restore the parent directory name
|
# restore the parent directory name
|
||||||
mv ../${DIR} ../${APP}
|
mv ../${DIR} ../${APP}
|
||||||
|
mv /tmp/freedombone/releases .
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
freedombone (1.00-1) jessie; urgency=low
|
freedombone (1.01-1) stable; urgency=low
|
||||||
|
|
||||||
* Initial package
|
* Fixed restore script
|
||||||
|
* Social key management
|
||||||
|
* Create reciprocal backup accounts
|
||||||
|
|
||||||
-- Bob Mottram (4096 bits) <bob@robotics.uk.to> Fri, 16 Jan 2015 21:19:00 +0100
|
-- Bob Mottram (4096 bits) <bob@robotics.uk.to> Thu, 09 Jul 2015 15:49:00 +0100
|
||||||
|
|
Loading…
Reference in New Issue