Skip to content

Commit

Permalink
Aktualizacja build.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wojsmol committed Aug 7, 2022
1 parent 8acb5cb commit e682979
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
* - php build/build.php --crowdin --v
* - php build/build.php --install --v
* - php build/build.php --fullurl "https://github.com/joomla/joomla-cms/releases/download/4.0.0-rc5/Joomla_4.0.0-rc5-Release_Candidate-Full_Package.zip" --v
* - php build/build.php --lpackages --v --tagversion "4.1.4v1"
* - php build/build.php --crowdin --v --tagversion "4.1.4v1"
* - php build/build.php --install --v --tagversion "4.1.4v1"
* - php build/build.php --fullurl "https://github.com/joomla/joomla-cms/releases/download/4.1.0-rc1/Joomla_4.1.0-rc1-Release_Candidate-Full_Package.zip" --v --tagversion "4.1.4v1"
*
* @package Joomla.Language
* @copyright (C) 2021 J!German <https://www.jgerman.de>
Expand Down Expand Up @@ -56,24 +61,29 @@
$fullpath = $tmp . '/' . $time;

// Parse input options
$options = getopt('', ['help', 'fullurl:', 'install', 'lpackages', 'v', 'crowdin']);
$options = getopt('', ['help', 'fullurl:', 'install', 'lpackages', 'v', 'crowdin', 'tagversion:']);

$showHelp = isset($options['help']);
$fullReleaseUrl = $options['fullurl'] ?? false;
$install = isset($options['install']);
$languagePackages = isset($options['lpackages']);
$verbose = isset($options['v']);
$crowdin = isset($options['crowdin']);
$tagVersion = $options['tagversion'] ?? false;

if ($showHelp)
{
usage($argv[0]);
exit;
}

if (!$tagVersion)
{
// Looking for the latest local tag
chdir($repo);
$tagVersion = system($systemGit . ' describe --tags `' . $systemGit . ' rev-list --tags --max-count=1`', $tagVersion);
}

$remote = 'tags/' . $tagVersion;
chdir($here);

Expand Down

0 comments on commit e682979

Please sign in to comment.