Skip to content

Commit

Permalink
Prepare RC
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 9, 2011
1 parent b96bd1a commit 29bb629
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/makepack-dolibarr.pl
Expand Up @@ -421,16 +421,17 @@
open (SPECTO,">$BUILDROOT/$PROJECT/DEBIAN/control") || die "Error";
while (<SPECFROM>) {
$newbuild = $BUILD;
$newbuild =~ s/dev/0/gi;
$newbuild =~ s/alpha/0/gi;
$newbuild =~ s/beta/1/gi;
if ($newbuild !~ /-/) { $newbuild.='-2'; }
$newbuild =~ s/(dev|alpha)/0/gi; # dev
$newbuild =~ s/beta/1/gi; # beta
$newbuild =~ s/rc./2/gi; # rc
if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale
$_ =~ s/__VERSION__/$MAJOR.$MINOR.$newbuild/;
print SPECTO $_;
}
close SPECFROM;
close SPECTO;

print "Version set to $MAJOR.$MINOR.$newbuild\n";

print "Create directory $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents\n";
$ret=`mkdir -p "$BUILDROOT/$PROJECT/usr/share/$PROJECT/documents"`;

Expand Down

0 comments on commit 29bb629

Please sign in to comment.