From 32b6b37ab3250b990d8ee3702c013aeb8ede2007 Mon Sep 17 00:00:00 2001 From: Gonen Radai Date: Sun, 10 Oct 2021 14:41:26 +0300 Subject: [PATCH] fix version number to comply with moodle standards --- blocks/kalturamediagallery/version.php | 6 +++--- filter/kaltura/version.php | 4 ++-- incrementVersion.sh | 6 +++++- lib/editor/atto/plugins/kalturamedia/version.php | 4 ++-- lib/editor/tinymce/plugins/kalturamedia/version.php | 4 ++-- local/kaltura/version.php | 2 +- local/kalturamediagallery/version.php | 4 ++-- local/mymedia/version.php | 4 ++-- mod/kalvidassign/version.php | 4 ++-- mod/kalvidres/version.php | 4 ++-- 10 files changed, 23 insertions(+), 19 deletions(-) diff --git a/blocks/kalturamediagallery/version.php b/blocks/kalturamediagallery/version.php index b98b6d58..f5c28766 100644 --- a/blocks/kalturamediagallery/version.php +++ b/blocks/kalturamediagallery/version.php @@ -14,11 +14,11 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->component = 'block_kalturamediagallery'; $plugin->dependencies = array( - 'local_kaltura' => 20210620311, - 'local_kalturamediagallery' => 20210620311 + 'local_kaltura' => 2021051700, + 'local_kalturamediagallery' => 2021051700 ); diff --git a/filter/kaltura/version.php b/filter/kaltura/version.php index 46aa324a..cf3d1d21 100644 --- a/filter/kaltura/version.php +++ b/filter/kaltura/version.php @@ -24,11 +24,11 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 20210620311; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version +$plugin->version = 2021051700; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version $plugin->component = 'filter_kaltura'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 ); diff --git a/incrementVersion.sh b/incrementVersion.sh index 5df8131e..32280e17 100755 --- a/incrementVersion.sh +++ b/incrementVersion.sh @@ -4,7 +4,11 @@ EXPECTED_ARGS=4 if [ $# -ne $EXPECTED_ARGS ]; then echo "Missing arguments!" - printf "Usage: \n \t$0 {existing build number} {new biuld number} {existing release number} {new release number}" + printf "Usage: \n \t$0 {existing build number} {new biuld number} {existing release number} {new release number}\n\n" + printf "IMPORTANT - the version number should follow these rules - YYYYMMDDII\n" + printf "WHERE: YYYMMDD should be the release date of the major Moodle version for the current branch (e.g. for 3.10 it should be 20201109) and the II should be the build number for the plugin for that version\n" + printf "For example, let's assume the next 3.12 release of moodle happens at 2025/12/01 and then we release a plugin compatible with that version, the version number should be set to 2025120100, and the second version of the plugin for 3.12 should have 2025120101\n" + printf "" printf "\nExample: \n \t$0 2014102807 2015012507 4.0.02 4.0.03\n\n" exit 1; fi diff --git a/lib/editor/atto/plugins/kalturamedia/version.php b/lib/editor/atto/plugins/kalturamedia/version.php index 941c04fa..3e2a8b6f 100644 --- a/lib/editor/atto/plugins/kalturamedia/version.php +++ b/lib/editor/atto/plugins/kalturamedia/version.php @@ -24,10 +24,10 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 20210620311; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2021051700; // The current plugin version (Date: YYYYMMDDXX). $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; // Requires this Moodle version. $plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 ); diff --git a/lib/editor/tinymce/plugins/kalturamedia/version.php b/lib/editor/tinymce/plugins/kalturamedia/version.php index bad54859..98c82a17 100644 --- a/lib/editor/tinymce/plugins/kalturamedia/version.php +++ b/lib/editor/tinymce/plugins/kalturamedia/version.php @@ -23,12 +23,12 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->release = 'Kaltura release 4.3.0'; // Required Moodle version. $plugin->requires = 2018120300; // Full name of the plugin (used for diagnostics). $plugin->component = 'tinymce_kalturamedia'; $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 ); diff --git a/local/kaltura/version.php b/local/kaltura/version.php index 5dada409..9b61f420 100644 --- a/local/kaltura/version.php +++ b/local/kaltura/version.php @@ -25,7 +25,7 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->component = 'local_kaltura'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; diff --git a/local/kalturamediagallery/version.php b/local/kalturamediagallery/version.php index 9058108a..7d993b46 100644 --- a/local/kalturamediagallery/version.php +++ b/local/kalturamediagallery/version.php @@ -26,11 +26,11 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->component = 'local_kalturamediagallery'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 ); diff --git a/local/mymedia/version.php b/local/mymedia/version.php index 868f9168..0a3657bd 100644 --- a/local/mymedia/version.php +++ b/local/mymedia/version.php @@ -25,11 +25,11 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->component = 'local_mymedia'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 ); diff --git a/mod/kalvidassign/version.php b/mod/kalvidassign/version.php index 7d52e3dd..2c9ba348 100644 --- a/mod/kalvidassign/version.php +++ b/mod/kalvidassign/version.php @@ -25,12 +25,12 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->component = 'mod_kalvidassign'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 20210620311, + 'local_kaltura' => 2021051700, ); diff --git a/mod/kalvidres/version.php b/mod/kalvidres/version.php index 6ffd1d64..0ba98f18 100644 --- a/mod/kalvidres/version.php +++ b/mod/kalvidres/version.php @@ -25,12 +25,12 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 20210620311; +$plugin->version = 2021051700; $plugin->component = 'mod_kalvidres'; $plugin->release = 'Kaltura release 4.3.0'; $plugin->requires = 2018120300; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 20210620311 + 'local_kaltura' => 2021051700 );