Skip to content

Commit

Permalink
spaces and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Apr 8, 2016
1 parent 64e8272 commit c44da7f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions build/bump.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* Updates all versions xmls and version.php
*
* Usage:
* 1. php build/bump.php <version>
* 1. php build/bump.php -v <version>
*
* Examples:
* - php build/bump.php -v 3.6.0-dev
* - php build/bump.php -v 3.6.0-beta1
* - php build/bump.php -v 3.6.0-beta2
* - php build/bump.php -v 3.6.0-rc1
* - php build/bump.php -v 3.6.0
* - /usr/bin/php /path/to/joomla-cms/build/bump.php 3.7.0
* - /usr/bin/php /path/to/joomla-cms/build/bump.php -v 3.7.0
*
* @package Joomla.Build
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
Expand All @@ -36,20 +36,21 @@ function usage($command)
$versionFile = '/libraries/cms/version/version.php';

$coreXmlFiles = array(
'/administrator/manifests/files/joomla.xml',
);
'/administrator/manifests/files/joomla.xml',
);

$languageXmlFiles = array(
'/administrator/manifests/packages/pkg_en-GB.xml',
'/language/en-GB/en-GB.xml',
'/language/en-GB/install.xml',
'/administrator/language/en-GB/en-GB.xml',
'/administrator/language/en-GB/install.xml',
'/installation/language/en-GB/en-GB.xml',
);
'/administrator/manifests/packages/pkg_en-GB.xml',
'/language/en-GB/en-GB.xml',
'/language/en-GB/install.xml',
'/administrator/language/en-GB/en-GB.xml',
'/administrator/language/en-GB/install.xml',
'/installation/language/en-GB/en-GB.xml',
);

// Check arguments (exit if incorrect cli arguments).
$opts = getopt("v:");

if (empty($opts['v']))
{
usage($argv[0]);
Expand Down Expand Up @@ -124,7 +125,7 @@ function usage($command)
echo 'Version data:'. PHP_EOL;
echo '- Main:' . PHP_TAB . PHP_TAB . PHP_TAB . $version['main'] . PHP_EOL;
echo '- Release:' . PHP_TAB . PHP_TAB . $version['release'] . PHP_EOL;
echo '- Full:' . PHP_TAB . PHP_TAB . PHP_TAB . $version['main'] . '.' . $version['dev_devel']. PHP_EOL;
echo '- Full:' . PHP_TAB . PHP_TAB . PHP_TAB . $version['main'] . '.' . $version['dev_devel'] . PHP_EOL;
echo '- Build:' . PHP_TAB . PHP_TAB . $version['build'] . PHP_EOL;
echo '- Dev Level:' . PHP_TAB . PHP_TAB . $version['dev_devel'] . PHP_EOL;
echo '- Dev Status:' . PHP_TAB . PHP_TAB . $version['dev_status'] . PHP_EOL;
Expand Down Expand Up @@ -174,4 +175,4 @@ function usage($command)
}
}

echo "Version bump complete!\n";
echo 'Version bump complete!' . PHP_EOL;

0 comments on commit c44da7f

Please sign in to comment.