Fix: Meilleur gestion du makepack sous linux
This commit is contained in:
parent
4d9fd1bab9
commit
5b3fcdacff
@ -81,7 +81,7 @@ if (! $TEMP || ! -d $TEMP) {
|
|||||||
$BUILDROOT="$TEMP/buildroot";
|
$BUILDROOT="$TEMP/buildroot";
|
||||||
|
|
||||||
|
|
||||||
my $copyalreadydone=0;
|
my $copyalreadydone=1;
|
||||||
|
|
||||||
# Choose package targets
|
# Choose package targets
|
||||||
#-----------------------
|
#-----------------------
|
||||||
@ -135,7 +135,7 @@ foreach my $target (keys %CHOOSEDTARGET) {
|
|||||||
print "Test requirement for target $target: Search '$req'... ";
|
print "Test requirement for target $target: Search '$req'... ";
|
||||||
$ret=`"$req" 2>&1`;
|
$ret=`"$req" 2>&1`;
|
||||||
$coderetour=$?; $coderetour2=$coderetour>>8;
|
$coderetour=$?; $coderetour2=$coderetour>>8;
|
||||||
if ($coderetour != 0 && ($coderetour2 == 1 || $coderetour2 == 127) && $PROGPATH) {
|
if ($coderetour != 0 && ($coderetour2 == 1 && $OS =~ /windows/) || ($coderetour2 == 127 && $OS !~ /windows/) && $PROGPATH) {
|
||||||
# If error not found, we try in PROGPATH
|
# If error not found, we try in PROGPATH
|
||||||
$ret=`"$PROGPATH/$ALTERNATEPATH{$req}/$req\" 2>&1`;
|
$ret=`"$PROGPATH/$ALTERNATEPATH{$req}/$req\" 2>&1`;
|
||||||
$coderetour=$?; $coderetour2=$coderetour>>8;
|
$coderetour=$?; $coderetour2=$coderetour>>8;
|
||||||
@ -194,9 +194,12 @@ if ($nboftargetok) {
|
|||||||
if ($target eq 'TGZ') {
|
if ($target eq 'TGZ') {
|
||||||
unlink $FILENAMETGZ.tgz;
|
unlink $FILENAMETGZ.tgz;
|
||||||
print "Compress $FILENAMETGZ into $FILENAMETGZ.tgz...\n";
|
print "Compress $FILENAMETGZ into $FILENAMETGZ.tgz...\n";
|
||||||
$ret=`tar --exclude-from "$SOURCE/build/tgz/tar.exclude" --directory "$BUILDROOT" -czvf "$BUILDROOT/$FILENAMETGZ.tgz" $FILENAMETGZ`;
|
$cmd="tar --exclude-from \"$SOURCE/build/tgz/tar.exclude\" --directory \"$BUILDROOT\" -czvf \"$FILENAMETGZ.tgz\" $FILENAMETGZ";
|
||||||
print "Move $FILENAMETGZ.tgz to $SOURCE/build/$FILENAMETGZ.tgz\n";
|
# $cmd="tar --exclude-from \"$SOURCE/build/tgz/tar.exclude\" --directory \"$BUILDROOT\" -czvf \"$BUILDROOT/$FILENAMETGZ.tgz\" $FILENAMETGZ";
|
||||||
rename("$BUILDROOT/$FILENAMETGZ.tgz","$SOURCE/build/$FILENAMETGZ.tgz");
|
# print $cmd;
|
||||||
|
$ret=`$cmd`;
|
||||||
|
# print "Move $FILENAMETGZ.tgz to $SOURCE/build/$FILENAMETGZ.tgz\n";
|
||||||
|
# $ret=`mv "$BUILDROOT/$FILENAMETGZ.tgz" "$SOURCE/build/$FILENAMETGZ.tgz"`;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +215,7 @@ if ($nboftargetok) {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($target eq 'RPM') {
|
if ($target eq 'RPM') { # Linux only
|
||||||
$BUILDFIC="$FILENAMETGZ.spec";
|
$BUILDFIC="$FILENAMETGZ.spec";
|
||||||
unlink $FILENAMETGZ.tgz;
|
unlink $FILENAMETGZ.tgz;
|
||||||
print "Compress $FILENAMETGZ into $FILENAMETGZ.tgz...\n";
|
print "Compress $FILENAMETGZ into $FILENAMETGZ.tgz...\n";
|
||||||
|
|||||||
@ -2,3 +2,8 @@ doc/dev/dolibarr-phpdoc
|
|||||||
htdocs/document
|
htdocs/document
|
||||||
CVS
|
CVS
|
||||||
*~
|
*~
|
||||||
|
dolibarr-*.tgz
|
||||||
|
dolibarr-*.exe
|
||||||
|
dolibarr-*.rpm
|
||||||
|
dolibarr-*.deb
|
||||||
|
dolibarr-*.zip
|
||||||
Loading…
Reference in New Issue
Block a user