Merge branch 'update_do_debian_release' into storageareas

This commit is contained in:
Isaac Connor 2017-01-14 10:53:11 -05:00
commit 27d764909f
1 changed files with 16 additions and 8 deletions

View File

@ -90,10 +90,14 @@ fi;
sudo apt-get install devscripts equivs
sudo mk-build-deps -ir ./debian/control
if [ -z `hostname -d` ] ; then
AUTHOR="`getent passwd $USER | cut -d ':' -f 5 | cut -d ',' -f 1` <`whoami`@`hostname`.local>"
if [ "$DEBEMAIL" != "" ] && [ "$DEBFULLNAME" != "" ]; then
AUTHOR="$DEBFULLNAME <$DEBEMAIL>"
else
AUTHOR="`getent passwd $USER | cut -d ':' -f 5 | cut -d ',' -f 1` <`whoami`@`hostname`>"
if [ -z `hostname -d` ] ; then
AUTHOR="`getent passwd $USER | cut -d ':' -f 5 | cut -d ',' -f 1` <`whoami`@`hostname`.local>"
else
AUTHOR="`getent passwd $USER | cut -d ':' -f 5 | cut -d ',' -f 1` <`whoami`@`hostname`>"
fi
fi
if [ "$SNAPSHOT" == "stable" ]; then
@ -102,7 +106,7 @@ zoneminder ($VERSION-$DISTRO) $DISTRO; urgency=medium
* Release $VERSION
-- $AUTHOR <iconnor@connortechnology.com> $DATE
-- $AUTHOR $DATE
EOF
else
@ -111,7 +115,7 @@ zoneminder ($VERSION-$DISTRO-$SNAPSHOT) $DISTRO; urgency=medium
*
-- $AUTHOR <iconnor@connortechnology.com> $DATE
-- $AUTHOR $DATE
EOF
fi;
@ -121,14 +125,18 @@ fi;
#tar zcf zoneminder_$VERSION-$DISTRO.orig.tar.gz zoneminder_$VERSION-$DISTRO-$SNAPSHOT.orig
#cd zoneminder_$VERSION-$DISTRO-$SNAPSHOT.orig
if [ $TYPE == "binary" ]; then
debuild
DEBUILD=debuild
else
if [ $TYPE == "local" ]; then
debuild -i -us -uc -b
DEBUILD="debuild -i -us -uc -b"
else
debuild -S -sa
DEBUILD="debuild -S -sa"
fi;
fi;
if [ "$DEBSIGN_KEYID" != "" ]; then
DEBUILD="$DEBUILD -k$DEBSIGN_KEYID"
fi
$DEBUILD
cd ../
read -p "Do you want to keep the checked out version of Zoneminder (incase you want to modify it later) [y/N]"