Merge remote-tracking branch 'origin/3.6' into 3.7
Conflicts: build/debian/changelog build/exe/doliwamp/doliwamp.iss build/makepack-dolibarr.pl build/rpm/dolibarr_fedora.spec build/rpm/dolibarr_generic.spec build/rpm/dolibarr_mandriva.spec build/rpm/dolibarr_opensuse.spec htdocs/filefunc.inc.php htdocs/product/stats/facture.php
This commit is contained in:
commit
3848daeab8
1
build/exe/doliwamp/.gitignore
vendored
Normal file
1
build/exe/doliwamp/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/doliwamp.tmp.iss
|
||||||
@ -16,10 +16,10 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
; ----- Change this -----
|
; ----- Change this -----
|
||||||
AppName=DoliWamp
|
AppName=DoliWamp
|
||||||
; DoliWamp-x.x.x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
|
; Replace key with DoliWamp-x.x.x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
|
||||||
AppVerName=DoliWamp-3.7.0-beta
|
AppVerName=__FILENAMEEXEDOLIWAMP__
|
||||||
; DoliWamp-x.x x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
|
; Replace key with DoliWamp-x.x x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
|
||||||
OutputBaseFilename=DoliWamp-3.7.0-beta
|
OutputBaseFilename=__FILENAMEEXEDOLIWAMP__
|
||||||
; ----- End of change
|
; ----- End of change
|
||||||
;OutputManifestFile=build\doliwampbuild.log
|
;OutputManifestFile=build\doliwampbuild.log
|
||||||
; Define full path from which all relative path are defined
|
; Define full path from which all relative path are defined
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# \file build/makepack-dolibarr.pl
|
# \file build/makepack-dolibarr.pl
|
||||||
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
||||||
# \author (c)2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
# \author (c)2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
#
|
#
|
||||||
# This is list of constant you can set to have generated packages moved into a specific dir:
|
# This is list of constant you can set to have generated packages moved into a specific dir:
|
||||||
#DESTIBETARC='/media/HDDATA1_LD/Mes Sites/Web/Dolibarr/dolibarr.org/files/lastbuild'
|
#DESTIBETARC='/media/HDDATA1_LD/Mes Sites/Web/Dolibarr/dolibarr.org/files/lastbuild'
|
||||||
@ -897,52 +897,50 @@ if ($nboftargetok) {
|
|||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/zip`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/zip`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/perl`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/perl`;
|
||||||
|
|
||||||
$APSVERSION="1.2";
|
$APSVERSION="1.2";
|
||||||
print "Create APS files $BUILDROOT/$PROJECT.tmp/$PROJECT/APP-META.xml\n";
|
print "Create APS files $BUILDROOT/$PROJECT.tmp/$PROJECT/APP-META.xml\n";
|
||||||
open (SPECFROM,"<$BUILDROOT/$PROJECT/build/aps/APP-META-$APSVERSION.xml") || die "Error";
|
open (SPECFROM,"<$BUILDROOT/$PROJECT/build/aps/APP-META-$APSVERSION.xml") || die "Error";
|
||||||
open (SPECTO,">$BUILDROOT/$PROJECT.tmp/$PROJECT/APP-META.xml") || die "Error";
|
open (SPECTO,">$BUILDROOT/$PROJECT.tmp/$PROJECT/APP-META.xml") || die "Error";
|
||||||
while (<SPECFROM>) {
|
while (<SPECFROM>) {
|
||||||
$newbuild = $BUILD;
|
$newbuild = $BUILD;
|
||||||
$newbuild =~ s/(dev|alpha)/0/gi; # dev
|
$newbuild =~ s/(dev|alpha)/0/gi; # dev
|
||||||
$newbuild =~ s/beta/1/gi; # beta
|
$newbuild =~ s/beta/1/gi; # beta
|
||||||
$newbuild =~ s/rc./2/gi; # rc
|
$newbuild =~ s/rc./2/gi; # rc
|
||||||
if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale
|
if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale
|
||||||
# now newbuild is 0-0 or 0-3 for example
|
# now newbuild is 0-0 or 0-3 for example
|
||||||
$_ =~ s/__VERSION__/$MAJOR.$MINOR.$REL1/;
|
$_ =~ s/__VERSION__/$MAJOR.$MINOR.$REL1/;
|
||||||
$_ =~ s/__RELEASE__/$RPMSUBVERSION/;
|
$_ =~ s/__RELEASE__/$RPMSUBVERSION/;
|
||||||
print SPECTO $_;
|
print SPECTO $_;
|
||||||
}
|
}
|
||||||
close SPECFROM;
|
close SPECFROM;
|
||||||
close SPECTO;
|
close SPECTO;
|
||||||
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
||||||
#$cmd="cp -pr \"$BUILDROOT/$PROJECT/build/aps/configure\" \"$BUILDROOT/$PROJECT.tmp/$PROJECT/scripts/configure\"";
|
$cmd="cp -pr \"$BUILDROOT/$PROJECT/build/aps/configure.php\" \"$BUILDROOT/$PROJECT.tmp/$PROJECT/scripts/configure.php\"";
|
||||||
#$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
$cmd="cp -pr \"$BUILDROOT/$PROJECT/build/aps/configure.php\" \"$BUILDROOT/$PROJECT.tmp/$PROJECT/scripts/configure.php\"";
|
$cmd="cp -pr \"$BUILDROOT/$PROJECT/doc/images\" \"$BUILDROOT/$PROJECT.tmp/$PROJECT/images\"";
|
||||||
$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
$cmd="cp -pr \"$BUILDROOT/$PROJECT/doc/images\" \"$BUILDROOT/$PROJECT.tmp/$PROJECT/images\"";
|
|
||||||
$ret=`$cmd`;
|
|
||||||
|
|
||||||
print "Remove other files\n";
|
print "Remove other files\n";
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/doc`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/doc`;
|
||||||
|
|
||||||
print "Build APP-LIST.xml files\n";
|
print "Build APP-LIST.xml files\n";
|
||||||
|
|
||||||
print "Compress $BUILDROOT/$PROJECT.tmp/$PROJECT into $FILENAMEAPS.zip...\n";
|
print "Compress $BUILDROOT/$PROJECT.tmp/$PROJECT into $FILENAMEAPS.zip...\n";
|
||||||
|
|
||||||
print "Go to directory $BUILDROOT/$PROJECT.tmp\/$PROJECT\n";
|
print "Go to directory $BUILDROOT/$PROJECT.tmp\/$PROJECT\n";
|
||||||
$olddir=getcwd();
|
$olddir=getcwd();
|
||||||
chdir("$BUILDROOT\/$PROJECT.tmp\/$PROJECT");
|
chdir("$BUILDROOT\/$PROJECT.tmp\/$PROJECT");
|
||||||
$cmd= "zip -9 -r $BUILDROOT/$FILENAMEAPS.zip \*";
|
$cmd= "zip -9 -r $BUILDROOT/$FILENAMEAPS.zip \*";
|
||||||
print $cmd."\n";
|
print $cmd."\n";
|
||||||
$ret= `$cmd`;
|
$ret= `$cmd`;
|
||||||
chdir("$olddir");
|
chdir("$olddir");
|
||||||
|
|
||||||
# Move to final dir
|
# Move to final dir
|
||||||
print "Move $BUILDROOT/$FILENAMEAPS.zip to $NEWDESTI/$FILENAMEAPS.zip\n";
|
print "Move $BUILDROOT/$FILENAMEAPS.zip to $NEWDESTI/$FILENAMEAPS.zip\n";
|
||||||
$ret=`mv "$BUILDROOT/$FILENAMEAPS.zip" "$NEWDESTI/$FILENAMEAPS.zip"`;
|
$ret=`mv "$BUILDROOT/$FILENAMEAPS.zip" "$NEWDESTI/$FILENAMEAPS.zip"`;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($target eq 'EXEDOLIWAMP')
|
if ($target eq 'EXEDOLIWAMP')
|
||||||
{
|
{
|
||||||
@ -950,25 +948,32 @@ if ($nboftargetok) {
|
|||||||
mkdir($DESTI.'/package_windows');
|
mkdir($DESTI.'/package_windows');
|
||||||
if (-d $DESTI.'/package_windows') { $NEWDESTI=$DESTI.'/package_windows'; }
|
if (-d $DESTI.'/package_windows') { $NEWDESTI=$DESTI.'/package_windows'; }
|
||||||
|
|
||||||
print "Remove target $FILENAMEEXEDOLIWAMP.exe...\n";
|
print "Remove target $FILENAMEEXEDOLIWAMP.exe...\n";
|
||||||
unlink "$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe";
|
unlink "$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe";
|
||||||
|
|
||||||
$SOURCEBACK=$SOURCE;
|
$SOURCEBACK=$SOURCE;
|
||||||
$SOURCEBACK =~ s/\//\\/g;
|
$SOURCEBACK =~ s/\//\\/g;
|
||||||
print "Compil exe $FILENAMEEXEDOLIWAMP.exe file from iss file \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.iss\"\n";
|
|
||||||
$cmd= "ISCC.exe \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.iss\"";
|
print "Prepare file \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.tmp.iss from \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.iss\"\n";
|
||||||
|
$ret=`cat "$SOURCE/build/exe/doliwamp/doliwamp.iss" | sed -e 's/__FILENAMEEXEDOLIWAMP__/$FILENAMEEXEDOLIWAMP/g' > "$SOURCE/build/exe/doliwamp/doliwamp.tmp.iss"`;
|
||||||
|
|
||||||
|
print "Compil exe $FILENAMEEXEDOLIWAMP.exe file from iss file \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.tmp.iss\"\n";
|
||||||
|
$cmd= "ISCC.exe \"$SOURCEBACK\\build\\exe\\doliwamp\\doliwamp.tmp.iss\"";
|
||||||
print "$cmd\n";
|
print "$cmd\n";
|
||||||
$ret= `$cmd`;
|
$ret= `$cmd`;
|
||||||
#print "$ret\n";
|
#print "$ret\n";
|
||||||
|
|
||||||
# Move to final dir
|
# Move to final dir
|
||||||
print "Move \"$SOURCE\\build\\$FILENAMEEXEDOLIWAMP.exe\" to $NEWDESTI/$FILENAMEEXEDOLIWAMP.exe\n";
|
print "Move \"$SOURCE\\build\\$FILENAMEEXEDOLIWAMP.exe\" to $NEWDESTI/$FILENAMEEXEDOLIWAMP.exe\n";
|
||||||
rename("$SOURCE/build/$FILENAMEEXEDOLIWAMP.exe","$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe");
|
rename("$SOURCE/build/$FILENAMEEXEDOLIWAMP.exe","$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe");
|
||||||
print "Move $SOURCE/build/$FILENAMEEXEDOLIWAMP.exe to $NEWDESTI/$FILENAMEEXEDOLIWAMP.exe\n";
|
print "Move $SOURCE/build/$FILENAMEEXEDOLIWAMP.exe to $NEWDESTI/$FILENAMEEXEDOLIWAMP.exe\n";
|
||||||
$ret=`mv "$SOURCE/build/$FILENAMEEXEDOLIWAMP.exe" "$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe"`;
|
$ret=`mv "$SOURCE/build/$FILENAMEEXEDOLIWAMP.exe" "$NEWDESTI/$FILENAMEEXEDOLIWAMP.exe"`;
|
||||||
next;
|
|
||||||
}
|
$ret=`rm "$SOURCE/build/exe/doliwamp/doliwamp.tmp.iss"`;
|
||||||
}
|
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Publish package for each target
|
# Publish package for each target
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
|||||||
@ -334,9 +334,3 @@ fi
|
|||||||
%changelog
|
%changelog
|
||||||
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
||||||
- Upstream release
|
- Upstream release
|
||||||
|
|
||||||
* Wed Sep 24 2014 Laurent Destailleur 3.6.1-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
* Wed Jul 15 2014 Laurent Destailleur 3.6.0-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|||||||
@ -571,9 +571,4 @@ fi
|
|||||||
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
||||||
- Upstream release
|
- Upstream release
|
||||||
|
|
||||||
* Wed Sep 24 2014 Laurent Destailleur 3.6.1-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
* Wed Jul 15 2014 Laurent Destailleur 3.6.0-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
|
|||||||
@ -340,9 +340,4 @@ fi
|
|||||||
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
||||||
- Upstream release
|
- Upstream release
|
||||||
|
|
||||||
* Wed Sep 24 2014 Laurent Destailleur 3.6.1-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
* Wed Jul 15 2014 Laurent Destailleur 3.6.0-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
|
|||||||
@ -351,9 +351,4 @@ fi
|
|||||||
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
* Wed Oct 29 2014 Laurent Destailleur 3.7.0-0.3
|
||||||
- Upstream release
|
- Upstream release
|
||||||
|
|
||||||
* Wed Sep 24 2014 Laurent Destailleur 3.6.1-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
* Wed Jul 15 2014 Laurent Destailleur 3.6.0-0.3
|
|
||||||
- Upstream release
|
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
* \brief File that include conf.php file and commons lib like functions.lib.php
|
* \brief File that include conf.php file and commons lib like functions.lib.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! defined('DOL_VERSION')) define('DOL_VERSION','3.7.0-beta');
|
if (! defined('DOL_VERSION')) define('DOL_VERSION','3.7.0');
|
||||||
if (! defined('EURO')) define('EURO',chr(128));
|
if (! defined('EURO')) define('EURO',chr(128));
|
||||||
|
|
||||||
// Define syslog constants
|
// Define syslog constants
|
||||||
|
|||||||
@ -2903,10 +2903,10 @@ class Societe extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if thirdparty may using localtax or not
|
* Check if we must use localtax feature or not according to country (country of $mysocin most cases).
|
||||||
*
|
*
|
||||||
* @param int $localTaxNum To get info for only localtax1 or localtax2
|
* @param int $localTaxNum To get info for only localtax1 or localtax2
|
||||||
* @return array array(0=>boolean, 1=>boolean)
|
* @return boolean true or false
|
||||||
*/
|
*/
|
||||||
function useLocalTax($localTaxNum=0)
|
function useLocalTax($localTaxNum=0)
|
||||||
{
|
{
|
||||||
@ -2928,9 +2928,9 @@ class Societe extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if thirdparty is from a country using revenue stamps
|
* Check if we must use revenue stamps feature or not according to country (country of $mysocin most cases).
|
||||||
*
|
*
|
||||||
* @return boolean Yes or no
|
* @return boolean true or false
|
||||||
*/
|
*/
|
||||||
function useRevenueStamp()
|
function useRevenueStamp()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user