From 7bf1d6cc9cee80323977b824909d628a81bbd085 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Fri, 30 Sep 2016 16:05:33 +0200
Subject: [PATCH] Push file signature on server

---
 ChangeLog                                     | 25 +++++++++++++++++++
 ...heck_xml.php => generate_filelist_xml.php} |  0
 build/makepack-dolibarr.pl                    |  9 ++++++-
 3 files changed, 33 insertions(+), 1 deletion(-)
 rename build/{generate_filecheck_xml.php => generate_filelist_xml.php} (100%)

diff --git a/ChangeLog b/ChangeLog
index ce28c4a577e..db688e220a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,31 @@ Upgrading to any other version or any other database system is abolutely require
 make a Dolibarr upgrade.
 
 
+***** ChangeLog for 4.0.1 compared to 4.0.0 *****
+FIX #2853
+FIX #2991
+FIX #3128
+FIX: #5699
+FIX #5734
+FIX : #5776
+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 inversion customer/supplier price
+FIX link "back to list" was not visible.
+FIX Lost filter on opportunities
+FIX Mandatory field payment term was not css highlighted.
+FIX Menu users not visible on dolidroid.
+FIX SEC for HTB23302
+FIX The email test sender in email setup was broken
+FIX Translation of "Name" is not a good choice for floow-up.
+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: vat dictionary should allow enter and edit multiple values for localtaxes, separated by: (ex -19:-15)
+
 ***** ChangeLog for 4.0.0 compared to 3.9.* *****
 For users:
 
diff --git a/build/generate_filecheck_xml.php b/build/generate_filelist_xml.php
similarity index 100%
rename from build/generate_filecheck_xml.php
rename to build/generate_filelist_xml.php
diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl
index ac735c59e0d..1883f1814da 100755
--- a/build/makepack-dolibarr.pl
+++ b/build/makepack-dolibarr.pl
@@ -317,8 +317,13 @@ print "\n";
 if ($CHOOSEDTARGET{'-CHKSUM'})
 {
    	print 'Create xml check file with md5 checksum with command php '.$SOURCE.'/build/generate_filecheck_xml.php release='.$MAJOR.'.'.$MINOR.'.'.$BUILD."\n";
-  	$ret=`php $SOURCE/build/generate_filecheck_xml.php release=$MAJOR.$MINOR.$BUILD`;
+  	$ret=`php $SOURCE/build/generate_filelist_xml.php release=$MAJOR.$MINOR.$BUILD`;
   	print $ret."\n";
+  	# Copy to final dir
+  	$NEWDESTI=$DESTI;
+	print "Copy \"$SOURCE/htdocs/install/filelist-$MAJOR.$MINOR.$BUILD.xml\" to $NEWDESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml\n";
+    use File::Copy qw(copy);
+    copy "$SOURCE/htdocs/install/filelist-$MAJOR.$MINOR.$BUILD.xml", "$NEWDESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml";
 }
 
 
@@ -1132,6 +1137,7 @@ if ($nboftargetok) {
 	
 		print "\nList of files to publish (BUILD=$BUILD)\n";
 		%filestoscansf=(
+			"$DESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml"=>'signatures',
 			"$DESTI/package_rpm_generic/$FILENAMERPM"=>'Dolibarr installer for Fedora-Redhat-Mandriva-Opensuse (DoliRpm)',
 			"$DESTI/package_debian-ubuntu/${FILENAMEDEB}_all.deb"=>'Dolibarr installer for Debian-Ubuntu (DoliDeb)',
 			"$DESTI/package_debian-ubuntu/${FILENAMEDEBSHORT}.orig.tar.gz"=>'none',
@@ -1140,6 +1146,7 @@ if ($nboftargetok) {
 			"$DESTI/standard/$FILENAMETGZ.zip"=>'Dolibarr ERP-CRM'
 		);
 		%filestoscanstableasso=(
+			"$DESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml"=>'signatures',
 			"$DESTI/package_rpm_generic/$FILENAMERPM"=>'package_rpm_generic',
 			"$DESTI/package_debian-ubuntu/${FILENAMEDEB}_all.deb"=>'package_debian-ubuntu',
 			"$DESTI/package_debian-ubuntu/${FILENAMEDEBSHORT}.orig.tar.gz"=>'package_debian-ubuntu',
-- 
GitLab