Enhance packager

This commit is contained in:
Laurent Destailleur 2016-10-01 19:56:06 +02:00
parent 49ea876b4a
commit c0ea95df3e
2 changed files with 45 additions and 31 deletions

View File

@ -13,29 +13,40 @@ make a Dolibarr upgrade.
***** ChangeLog for 4.0.1 compared to 4.0.0 ***** ***** ChangeLog for 4.0.1 compared to 4.0.0 *****
FIX #2853 FIX: #2853
FIX #2991 FIX: #2991
FIX #3128 FIX: #3128
FIX: #5699 FIX: #5699
FIX #5734 FIX: #5734
FIX : #5776 FIX: #5742 error on project list if an extra field separator is added.
FIX alignement of intervention status FIX: #5746 chrome php Try a fix. Not sure it solved all problems reported
FIX Clean of search fields FIX: #5748 Bug: Error updating to 4.0.1 with Postgresql. Field must be varchar.
FIX Creation of donation should go back on card after creation FIX: #5750 Bug: CmailFile::server_parse enters an infinite loop if $server_response is false
FIX Date visible on project overview FIX: #5752 Bug VAT NPR not propagated during proposal cloning
FIX Execute a dedicated job from its id may results of launching other jobs too. FIX: #5763 Bug: Cannot Create Supplier Price Request
FIX: #5770 Dolibarr doesn't modify correctly the hour of a task
FIX: #5776
FIX: #5802 Incoterms not set
FIX: #5813 Bug: Incoterms not being read correctly
FIX: #5818
FIX: alignement of intervention status
FIX: Clean of search fields
FIX: Creation of donation should go back on card after creation
FIX: Date visible on project overview
FIX: Execute a dedicated job from its id may results of launching other jobs too.
FIX: Failed to export contact categories with contact extra fields FIX: Failed to export contact categories with contact extra fields
FIX inversion customer/supplier price FIX: inversion customer/supplier price
FIX link "back to list" was not visible. FIX: link "back to list" was not visible.
FIX Lost filter on opportunities FIX: Lost filter on opportunities
FIX Mandatory field payment term was not css highlighted. FIX: Mandatory field payment term was not css highlighted.
FIX Menu users not visible on dolidroid. FIX: Menu users not visible on dolidroid.
FIX SEC for HTB23302 FIX: SEC for HTB23302
FIX The email test sender in email setup was broken FIX: The email test sender in email setup was broken
FIX Translation of "Name" is not a good choice for floow-up. FIX: Translation of "Name" is not a good choice for floow-up.
FIX Update of maxnbrun on job list failed. FIX: Update of maxnbrun on job list failed.
FIX Value of payment term and project are not set on correct default value when invoice generated from template. FIX: Value of payment term and project are not set on correct default value when invoice generated from template.
FIX: vat dictionary should allow enter and edit multiple values for localtaxes, separated by: (ex -19:-15) FIX: vat dictionary should allow enter and edit multiple values for localtaxes, separated by: (ex -19:-15)
FIX: Vat not visible in dictionnary
***** ChangeLog for 4.0.0 compared to 3.9.* ***** ***** ChangeLog for 4.0.0 compared to 3.9.* *****
For users: For users:

View File

@ -368,20 +368,23 @@ if ($nboftargetok) {
if (! $ret) if (! $ret)
{ {
print "Error: The ChangeLogFile was not updated. Run the following command before building package for $MAJOR.$MINOR.$BUILD:\n"; print "Error: The ChangeLogFile was not updated. Run the following command before building package for $MAJOR.$MINOR.$BUILD:\n";
if (! $BUILD || $BUILD eq '0-rc') # For a major version
{
print 'cd ~/git/dolibarr_'.$MAJOR.'.'.$MINOR.'; git log `git rev-list --boundary '.$MAJOR.'.'.$MINOR.'..origin/develop | grep ^- | cut -c2- | head -n 1`.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e \'^FIX\|NEW\' | sort -u | sed \'s/FIXED:/FIX:/g\' | sed \'s/FIXED :/FIX:/g\' | sed \'s/FIX :/FIX:/g\' | sed \'s/FIX /FIX: /g\' | sed \'s/NEW :/NEW:/g\' | sed \'s/NEW /NEW: /g\' > /tmp/aaa';
}
else # For a maintenance release
{
print 'cd ~/git/dolibarr_'.$MAJOR.'.'.$MINOR.'; git log '.$MAJOR.'.'.$MINOR.'.'.($BUILD-1).'.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e \'^FIX\|NEW\' | sort -u | sed \'s/FIXED:/FIX:/g\' | sed \'s/FIXED :/FIX:/g\' | sed \'s/FIX :/FIX:/g\' | sed \'s/FIX /FIX: /g\' | sed \'s/NEW :/NEW:/g\' | sed \'s/NEW /NEW: /g\' > /tmp/aaa';
}
print "\n";
exit;
} }
else else
{ {
print "ChangeLog for $MAJOR.$MINOR\.$BUILD was found into '$SOURCE/ChangeLog'\n"; print "ChangeLog for $MAJOR.$MINOR\.$BUILD was found into '$SOURCE/ChangeLog. But you can regenerate it with commande:'\n";
}
if (! $BUILD || $BUILD eq '0-rc') # For a major version
{
print 'cd ~/git/dolibarr_'.$MAJOR.'.'.$MINOR.'; git log `git rev-list --boundary '.$MAJOR.'.'.$MINOR.'..origin/develop | grep ^- | cut -c2- | head -n 1`.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e \'^FIX\|NEW\' | sort -u | sed \'s/FIXED:/FIX:/g\' | sed \'s/FIXED :/FIX:/g\' | sed \'s/FIX :/FIX:/g\' | sed \'s/FIX /FIX: /g\' | sed \'s/NEW :/NEW:/g\' | sed \'s/NEW /NEW: /g\' > /tmp/aaa';
}
else # For a maintenance release
{
print 'cd ~/git/dolibarr_'.$MAJOR.'.'.$MINOR.'; git log '.$MAJOR.'.'.$MINOR.'.'.($BUILD-1).'.. --no-merges --pretty=short --oneline | sed -e "s/^[0-9a-z]* //" | grep -e \'^FIX\|NEW\' | sort -u | sed \'s/FIXED:/FIX:/g\' | sed \'s/FIXED :/FIX:/g\' | sed \'s/FIX :/FIX:/g\' | sed \'s/FIX /FIX: /g\' | sed \'s/NEW :/NEW:/g\' | sed \'s/NEW /NEW: /g\' > /tmp/aaa';
}
print "\n";
if (! $ret)
{
exit;
} }
print 'Run git tag -a -m "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'" "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'"'."\n"; print 'Run git tag -a -m "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'" "'.$MAJOR.'.'.$MINOR.'.'.$BUILD.'"'."\n";