Merge branch 'update_do_debian_release' into storageareas
This commit is contained in:
commit
27d764909f
|
@ -90,11 +90,15 @@ fi;
|
|||
sudo apt-get install devscripts equivs
|
||||
sudo mk-build-deps -ir ./debian/control
|
||||
|
||||
if [ "$DEBEMAIL" != "" ] && [ "$DEBFULLNAME" != "" ]; then
|
||||
AUTHOR="$DEBFULLNAME <$DEBEMAIL>"
|
||||
else
|
||||
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
|
||||
cat <<EOF > debian/changelog
|
||||
|
@ -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]"
|
||||
|
|
Loading…
Reference in New Issue