diff --git a/.make/release/update-xml.php b/.make/release/update-xml.php index 42e73a73d..357919e88 100644 --- a/.make/release/update-xml.php +++ b/.make/release/update-xml.php @@ -9,9 +9,13 @@ * * Usage : * `php .make\release\update-xml.php "1.7"` + * `php .make\release\update-xml.php` + * + * If no parameter provided then the current XML version will be used as target version * * @since 2.7.0 simple version change using regexp (not doing conversion) * @since 3.1.0 N°5405 now does a real conversion + * @since 3.1.0 N°5633 allow to use without parameter ******************************************************************************/ @@ -23,10 +27,12 @@ require_once (__DIR__.DIRECTORY_SEPARATOR.'update.classes.inc.php'); if (count($argv) === 1) { - echo '/!\ You must pass the new version as parameter'; - exit(1); + echo '/!\ No version passed: assuming target XML version is current XML version ('.ITOP_DESIGN_LATEST_VERSION.")\n"; + $sVersionLabel = ITOP_DESIGN_LATEST_VERSION; +} else { + $sVersionLabel = $argv[1]; } -$sVersionLabel = $argv[1]; + if (empty($sVersionLabel)) { echo 'Version passed as parameter is empty !';