From e682979f8a60b270f3b2e05e127a3f811db6bdd8 Mon Sep 17 00:00:00 2001 From: wojsmol Date: Sun, 7 Aug 2022 18:40:45 +0200 Subject: [PATCH] Aktualizacja build.php --- build/build.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build/build.php b/build/build.php index 837ec33..125b326 100644 --- a/build/build.php +++ b/build/build.php @@ -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 @@ -56,7 +61,7 @@ $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; @@ -64,6 +69,7 @@ $languagePackages = isset($options['lpackages']); $verbose = isset($options['v']); $crowdin = isset($options['crowdin']); +$tagVersion = $options['tagversion'] ?? false; if ($showHelp) { @@ -71,9 +77,13 @@ 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);