Mise a jour script pour prparation release
This commit is contained in:
parent
6545f1cbcd
commit
65ea609bac
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user