2011-10-27 Ramon Novoa <rnovoa@artica.es>

* build_src.sh: Include build number in tarballs for nightly builds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5088 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-10-27 16:50:37 +00:00
parent 0a25581e2e
commit 20cbb8176b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-10-27 Ramon Novoa <rnovoa@artica.es>
* build_src.sh: Include build number in tarballs for nightly builds.
2011-10-27 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Include build number in deb package

View File

@ -3,8 +3,14 @@ CODEHOME=~/code/pandora/trunk
CODEHOME_ENT=~/code/artica/code
RPMHOME=/usr/src/packages
VERSION=$(grep 'my $pandora_version =' $CODEHOME/pandora_server/lib/PandoraFMS/Config.pm | awk '{print substr($4, 2, length($4) - 3)}')
BUILD=$(grep 'my $pandora_build =' $CODEHOME/pandora_server/lib/PandoraFMS/Config.pm | awk '{print substr($4, 2, length($4) - 3)}')
KEYGEN_VERSION=$(grep "%define version" $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec | awk '{print $3}')
# Add build string for nightly builds
if [ "$1" == "nightly" ]; then
VERSION="$VERSION-$BUILD"
fi
if [ ! -d $RPMHOME/SOURCES ]; then
mkdir -p $RPMHOME/SOURCES || exit 1
fi