Browse Source

Fic packaging tools

Laurent Destailleur 7 years ago
parent
commit
2ee0e68d67
2 changed files with 8 additions and 2 deletions
  1. 7 1
      build/generate_filelist_xml.php
  2. 1 1
      build/makepack-dolibarr.pl

+ 7 - 1
build/generate_filelist_xml.php

@@ -17,7 +17,7 @@
  */
 
 /**
- *      \file       build/generate_filecheck_xml.php
+ *      \file       build/generate_filelist_xml.php
  *		\ingroup    dev
  * 		\brief      This script create a xml checksum file
  */
@@ -68,6 +68,12 @@ while ($i < $argc)
     $i++;
 }
 
+// If release is auto, we take current version
+if ($release == 'auto')
+{
+	$release = DOL_VERSION;
+}
+
 if (empty($includecustom))
 {
     if (DOL_VERSION != $release)

+ 1 - 1
build/makepack-dolibarr.pl

@@ -388,7 +388,7 @@ if ($nboftargetok) {
 	#-----------------------
 	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";
+	   	print 'Create xml check file with md5 checksum with command php '.$SOURCE.'/build/generate_filelist_xml.php release='.$MAJOR.'.'.$MINOR.'.'.$BUILD."\n";
 	  	$ret=`php $SOURCE/build/generate_filelist_xml.php release=$MAJOR.$MINOR.$BUILD`;
 	  	print $ret."\n";
 	  	# Copy to final dir