Skip to content
Snippets Groups Projects
Commit 65ea609b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Mise a jour script pour préparation release

parent 6545f1cb
No related branches found
No related tags found
No related merge requests found
......@@ -45,11 +45,3 @@ Alias /dolibarr /usr/share/dolibarr
#</DirectoryMatch>
#
#
# Not yet obsolete (donation module)
#
SetEnv LLX_DBTYPE mysql
SetEnv LLX_DBHOST localhost
SetEnv LLX_DBUSER user
SetEnv LLX_DBPASS pass
SetEnv LLX_DBNAME dolibarr
......@@ -11,7 +11,7 @@ use Cwd;
$PROJECT="dolibarr";
$MAJOR="2";
$MINOR="0";
$BUILD="0-alpha2";
$BUILD="0-beta1";
$RPMSUBVERSION="1";
@LISTETARGET=("TGZ","ZIP","RPM","DEB","EXE"); # Possible packages
......@@ -240,7 +240,7 @@ if ($nboftargetok) {
#print "cd $BUILDROOTNT & 7z a -r -tzip -mx $BUILDROOT/$FILENAMEZIP.zip $FILENAMETGZ\\*.*\n";
#$ret=`cd $BUILDROOTNT & 7z a -r -tzip -mx $BUILDROOT/$FILENAMEZIP.zip $FILENAMETGZ\\*.*`;
$ret=`7z a -r -tzip -mx $BUILDROOT/$FILENAMEZIP.zip $FILENAMETGZ\\*.*`;
print "Move $FILENAMEZIP.zip to $DESTI\n";
print "Move $FILENAMEZIP.zip to $DESTI\n";
rename("$BUILDROOT/$FILENAMEZIP.zip","$DESTI/$FILENAMEZIP.zip");
next;
}
......@@ -257,13 +257,13 @@ if ($nboftargetok) {
print "Copy $SOURCE/make/rpm/${BUILDFIC} to $BUILDROOT\n";
# $ret=`cp -p "$SOURCE/make/rpm/${BUILDFIC}" "$BUILDROOT"`;
open (SPECFROM,"<$SOURCE/make/rpm/${BUILDFIC}") || die "Error";
open (SPECTO,">$BUILDROOT/$BUILDFIC") || die "Error";
while (<SPECFROM>) {
$_ =~ s/__VERSION__/$MAJOR.$MINOR.$BUILD/;
print SPECTO $_;
}
close SPECFROM;
open (SPECFROM,"<$SOURCE/make/rpm/${BUILDFIC}") || die "Error";
open (SPECTO,">$BUILDROOT/$BUILDFIC") || die "Error";
while (<SPECFROM>) {
$_ =~ s/__VERSION__/$MAJOR.$MINOR.$BUILD/;
print SPECTO $_;
}
close SPECFROM;
close SPECTO;
print "Launch RPM build (rpm --clean -ba $BUILDROOT/${BUILDFIC})\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment