Skip to content

Commit

Permalink
numeric version for perl
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed May 27, 2019
1 parent 8e6915c commit 56a83f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/perl-piped/RRDp.pm
Expand Up @@ -124,7 +124,7 @@ sub cmd (@);
sub end ();
sub read ();

$VERSION=1.7.2;
$VERSION=1.7002;

sub start ($){
croak "rrdtool is already running"
Expand Down
2 changes: 1 addition & 1 deletion bindings/perl-shared/RRDs.pm
Expand Up @@ -7,7 +7,7 @@ use vars qw(@ISA $VERSION);

require DynaLoader;

$VERSION=1.7.2;
$VERSION=1.7002;

bootstrap RRDs $VERSION;

Expand Down
4 changes: 2 additions & 2 deletions rrdtool-release
@@ -1,9 +1,9 @@
#!/bin/sh
set -e
VERSION=`cat VERSION`
PERLVERS=`perl -n -e 'm/NUMVERS=(\d+\.\d+)/ && print $1' configure.ac`
NUMVERS=`perl -n -e 'm/NUMVERS=(\d+\.\d+)/ && print $1' configure`
set -x
perl -i -p -e 's/^\$VERSION.+/\$VERSION='$VERSION';/' bindings/perl-*/*.pm
perl -i -p -e 's/^\$VERSION.+/\$VERSION='$NUMVERS';/' bindings/perl-*/*.pm
perl -i -p -e 's/RRDtool 1\S+/RRDtool '$VERSION'/ && s/Copyright.+?Oetiker.+\d{4}/Copyright by Tobi Oetiker, 1997-2019/' src/*.h src/*.c
perl -i -p -e 's/^Version:.+/Version: '$VERSION'/' rrdtool.spec
perl -i -p -e 's/rrdtool-[\.\d]+\d(pre\d+)?(rc\d+)?/rrdtool-'$VERSION'/g' doc/rrdbuild.pod
Expand Down

0 comments on commit 56a83f4

Please sign in to comment.