Skip to content

Commit

Permalink
update version getter
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Feb 3, 2025
1 parent 0be2f2c commit 3f0d9c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions getversions.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

use strict;

open my $rdmp, '<', "RDMP/directory.build.props" or die "rdmp:$!\n";
open my $rdmp, '<', "Rdmp/SharedAssemblyInfo.cs" or die "Rdmp/SharedAssemblyInfo.cs:$1\n";
while(<$rdmp>) {
print "rdmpversion=$1\n" if /version>([^<]+)</i;
}
open my $assembly, '<', "SharedAssemblyInfo.cs" or die "SharedAssemblyInfo.cs:$1\n";
while(<$assembly>) {
print "version=$1\n" if /AssemblyInformationalVersion\("([^\"]+)"\)/;
}
print "rdmpversion=$1\n" if /AssemblyInformationalVersion\("([^\"]+)"\)/;
}
open my $assembly, '<', "SharedAssemblyInfo.cs" or die "SharedAssemblyInfo.cs:$1\n";
while(<$assembly>) {
print "version=$1\n" if /AssemblyInformationalVersion\("([^\"]+)"\)/;
}

0 comments on commit 3f0d9c4

Please sign in to comment.