Skip to content

Commit

Permalink
Item11648: one more BuildContrib fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@14418 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Mar 22, 2012
1 parent 11bf5db commit 820d68a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/tools/build.pl
Expand Up @@ -67,9 +67,10 @@ sub new {
if ( $name eq '-auto' ) {

#build a name from major.minor.patch.-auto.svnrev
my $rev = ( $cvs eq 'svn' ) ? `svn info ..` : `git svn info`;
$rev =~ /Revision: (\d*)/m;
$name = 'Foswiki-' . getCurrentFoswikiRELEASE() . '-auto' . $1;
my $revlog = ( $cvs eq 'svn' ) ? `svn info ..` : `git svn info`;
my ($rev) = $revlog =~ /Revision: (\d*)/m;
$rev ||= 'LOCAL';
$name = 'Foswiki-' . getCurrentFoswikiRELEASE() . '-auto' . $rev;
$autoBuild = 1;
}
}
Expand Down

0 comments on commit 820d68a

Please sign in to comment.