Skip to content

Commit

Permalink
take version from zmes
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jan 26, 2021
1 parent 724e588 commit 89dd888
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 12 additions & 3 deletions make_tag.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Getting version name from zm_detect.py"
TAGVER=`python ./hook/zm_detect.py --bareversion`
#echo "Getting version name from zm_detect.py"
#TAGVER=`python ./hook/zm_detect.py --bareversion`
echo 'Getting version from zmeventnotification.pl'
if [[ `cat ./zmeventnotification.pl` =~ my\ \$app_version\ =\ \'([0-9]*\.[0-9]*\.[0-9]*)\'\; ]];
then
TAGVER=${BASH_REMATCH[1]}
else
echo "Bad version parsing"
exit
fi
else
TAGVER=$1
fi
VER="${TAGVER/v/}"
echo "Creating tag:v$VER"

echo "(FYI: zm_detect version is `python ./hook/zm_detect.py --bareversion`)"
echo
read -p "Please generate CHANGELOG and commit it BEFORE you tag. Press a key when ready..."
read -p "Press any key to create the tag or Ctrl-C to break..." -n1
git tag -fa v$VER -m"v$VER"
Expand Down
6 changes: 4 additions & 2 deletions zmeventnotification.pl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
use Symbol qw(qualify_to_ref);
use IO::Select;

#use Memory::Usage;

####################################
my $app_version = '6.1.9';
####################################
Expand Down Expand Up @@ -300,6 +298,8 @@

# This part makes sure we have the right core deps. See later for optional deps



if ( !try_use('Net::WebSocket::Server') ) {
Fatal('Net::WebSocket::Server missing');
}
Expand Down Expand Up @@ -831,6 +831,7 @@ sub print_config {
#
# ==========================================================================


use ZoneMinder;
use POSIX;
use DBI;
Expand Down Expand Up @@ -918,6 +919,7 @@ sub REAPER {
# Main entry point
#


printInfo("|------- Starting ES version: $app_version ---------|");
printDebug( "Started with: perl:" . $^X . " and command:" . $0, 1 );

Expand Down

0 comments on commit 89dd888

Please sign in to comment.