Skip to content

Commit

Permalink
Allow release script to specify custom version
Browse files Browse the repository at this point in the history
  • Loading branch information
thorvald committed Nov 11, 2009
1 parent f3e9ed7 commit f3b2395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,16 @@ ($$)

delete($files{'LICENSE'});

if (($#ARGV < 0) || ($ARGV[0] ne "release")) {
if ($#ARGV < 0) {
open(F, "git rev-parse --short=6 origin|");
while (<F>) {
chomp();
$ver .= "~" . strftime("%Y%m%d%H%M",gmtime()) . "-" . $_;
}
close(F);
print "REVISION $ver\n";
} elsif ($#ARGV == 0) {
$ver = $ARGV[0];
}

my $tar = new Archive::Tar();
Expand Down

0 comments on commit f3b2395

Please sign in to comment.