2011-12-21 12:38:57 +01:00
|
|
|
#!/bin/bash
|
2014-09-01 18:13:26 +02:00
|
|
|
CODEHOME=/root/code/pandorafms
|
|
|
|
CODEHOME_ENT=/root/code/pandora_enterprise
|
|
|
|
PANDHOME_ENT=$CODEHOME_ENT
|
2011-12-21 12:38:57 +01:00
|
|
|
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)}')
|
2013-10-16 11:20:04 +02:00
|
|
|
X86_64=`uname -m | grep x86_64`
|
2013-11-06 09:59:09 +01:00
|
|
|
CONSOLEHOME=$CODEHOME/pandora_console
|
2014-09-01 18:13:26 +02:00
|
|
|
CONSOLEHOME_ENT=$CODEHOME_ENT/pandora_console
|
2016-05-10 16:53:01 +02:00
|
|
|
|
|
|
|
function get_current_branch {
|
2016-05-11 10:13:24 +02:00
|
|
|
echo `cd "$CODEHOME" && git branch 2>/dev/null | grep \* | awk '{print $2}'`
|
2016-05-10 16:53:01 +02:00
|
|
|
}
|
|
|
|
|