Fic packaging tools

This commit is contained in:
Laurent Destailleur 2018-03-22 13:22:33 +01:00
parent 658b145ff4
commit 2ee0e68d67
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -388,7 +388,7 @@ if ($nboftargetok) {
#----------------------- #-----------------------
if ($CHOOSEDTARGET{'-CHKSUM'}) 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`; $ret=`php $SOURCE/build/generate_filelist_xml.php release=$MAJOR.$MINOR.$BUILD`;
print $ret."\n"; print $ret."\n";
# Copy to final dir # Copy to final dir