From 05b7b3c9693389303a6208101e8efdfb0770437f Mon Sep 17 00:00:00 2001 From: Michel Jouvin Date: Tue, 5 Nov 2024 23:56:45 +0100 Subject: [PATCH] get-template-library: exclude all versions before 23.x - Also add --all-versions to download all the available versions --- src/scripts/get-template-library | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scripts/get-template-library b/src/scripts/get-template-library index 4f42f1ec07..21d9bb06be 100755 --- a/src/scripts/get-template-library +++ b/src/scripts/get-template-library @@ -70,7 +70,7 @@ monitoring_dest_dir=standard/monitoring # If a branch name matches one of the pattern, it will be ignored # HEAD added to workaround a bug in the release procedure when producing 14.5 ignore_branch_patterns='\.obsolete$ ^HEAD$' -ignore_version_patterns='13.1.[1-3] 13.[2-9] 13.12 14.[2-8]' +ignore_version_patterns='^1[0-9]\..* ^2[0-2]\.*' template_lib_root=${TMPDIR:-/tmp}/quattor-template-library git_clone_root=${template_lib_root}/.gitrepos list_branches=0 @@ -85,6 +85,7 @@ usage () { echo "" echo " Valid options are:" echo "" + echo " --all-versions: download all available versions" echo " --continuous-integration: use working copy contents instead of the GitHub repository" echo " -d template_library_root: directory where to create the template library." echo " (D: ${template_lib_root})" @@ -146,6 +147,10 @@ do usage ;; + --all-versions) + ignore_version_patterns="non existing version pattern" + ;; + --pull-request) shift pull_request=$1