Skip to content

Commit

Permalink
Only get short git hash from master [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseEspinosa committed May 30, 2023
1 parent 92fc2f9 commit a0ca16c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/perl/lib/perl4makefile/read_program_version.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@
if (($cl=~/-beta/))
{
increase ($build_versionF, 1);
if ($ENV{'TC_MASTER_NODE'}){system ("git branch -v >$githubF");}
if ($ENV{'TC_MASTER_NODE'}){system ("git rev-parse --short master >$githubF");}
circleci2releaseV($circleciF, "0");
}
elsif ( ($cl=~/-stable/))
{
value2file(0, $build_versionF);
increase ($minor_versionF, 1);
if ($ENV{'TC_MASTER_NODE'}){system ("git branch -v >$githubF");}
if ($ENV{'TC_MASTER_NODE'}){system ("git rev-parse --short master >$githubF");}
circleci2releaseV($circleciF, "1");
}
elsif ( ($cl=~/-major/))
{
value2file(0, $build_versionF);
value2file(0, $minor_versionF);
increase ($major_versionF, 1);
if ($ENV{'TC_MASTER_NODE'}){system ("git branch -v >$githubF");}
if ($ENV{'TC_MASTER_NODE'}){system ("git rev-parse --short master >$githubF");}
circleci2releaseV($circleciF, "1");
}

Expand Down Expand Up @@ -113,11 +113,8 @@ sub github_file2value
while (<F>)
{
my $l=$_;
chomp $l;
if ($l=~/\* master (\w+) .*/)
{
$value=$1;
}
chomp ($l);
$value=$l;
close (F);
return $value;
}
Expand Down

0 comments on commit a0ca16c

Please sign in to comment.