From b5d5402e439f5edfd642fb4f680d596f5992e874 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Mon, 10 Oct 2022 00:37:51 +0200 Subject: src: modularize repo layout into a library This will greatly help us to structure the functionality and commands in a more sane way. We will distribute the sources as actual libraries and reuse code with imports instead of processing everything with m4 and duplicating a lot of code. --- src/lib/valid-repos.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/lib/valid-repos.sh (limited to 'src/lib/valid-repos.sh') diff --git a/src/lib/valid-repos.sh b/src/lib/valid-repos.sh new file mode 100644 index 0000000..9ac9639 --- /dev/null +++ b/src/lib/valid-repos.sh @@ -0,0 +1,32 @@ +#!/hint/bash +# +# SPDX-License-Identifier: GPL-3.0-or-later +: + +# shellcheck disable=2034 +_repos=( + staging + testing + core + extra + community-staging + community-testing + community + multilib-staging + multilib-testing + multilib + gnome-unstable + kde-unstable +) + +# shellcheck disable=2034 +_build_repos=( + staging + testing + extra + multilib-staging + multilib-testing + multilib + gnome-unstable + kde-unstable +) -- cgit v1.2.3-70-g09d2 From b9db6160a2547a57d19308776a25223eb2130b6b Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Tue, 13 Dec 2022 20:41:37 +0100 Subject: git: convert repos and tags config to new repo layout --- Makefile | 9 ++++----- src/lib/valid-repos.sh | 21 +++++---------------- src/lib/valid-tags.sh | 9 ++++----- 3 files changed, 13 insertions(+), 26 deletions(-) (limited to 'src/lib/valid-repos.sh') diff --git a/Makefile b/Makefile index f59ca26..89251f4 100644 --- a/Makefile +++ b/Makefile @@ -20,12 +20,11 @@ SETARCH_ALIASES = $(wildcard config/setarch-aliases.d/*) MANS = $(addprefix $(BUILDDIR)/,$(patsubst %.asciidoc,%,$(wildcard doc/man/*.asciidoc))) COMMITPKG_LINKS = \ + core-testingpkg \ + core-stagingpkg \ extrapkg \ - testingpkg \ - stagingpkg \ - communitypkg \ - community-testingpkg \ - community-stagingpkg \ + extra-testingpkg \ + extra-stagingpkg \ multilibpkg \ multilib-testingpkg \ multilib-stagingpkg \ diff --git a/src/lib/valid-repos.sh b/src/lib/valid-repos.sh index 9ac9639..1f823f4 100644 --- a/src/lib/valid-repos.sh +++ b/src/lib/valid-repos.sh @@ -5,28 +5,17 @@ # shellcheck disable=2034 _repos=( - staging - testing - core - extra - community-staging - community-testing - community - multilib-staging - multilib-testing - multilib + core core-staging core-testing + extra extra-staging extra-testing + multilib multilib-staging multilib-testing gnome-unstable kde-unstable ) # shellcheck disable=2034 _build_repos=( - staging - testing - extra - multilib-staging - multilib-testing - multilib + extra staging testing + multilib multilib-staging multilib-testing gnome-unstable kde-unstable ) diff --git a/src/lib/valid-tags.sh b/src/lib/valid-tags.sh index d628fd1..ca8d7d7 100644 --- a/src/lib/valid-tags.sh +++ b/src/lib/valid-tags.sh @@ -12,15 +12,14 @@ _arch=( # shellcheck disable=2034 _tags=( core-x86_64 core-any + core-staging-x86_64 core-staging-any + core-testing-x86_64 core-testing-any extra-x86_64 extra-any + extra-staging-x86_64 extra-staging-any + extra-testing-x86_64 extra-testing-any multilib-x86_64 - staging-x86_64 staging-any - testing-x86_64 testing-any multilib-testing-x86_64 multilib-staging-x86_64 - community-x86_64 community-any - community-staging-x86_64 community-staging-any - community-testing-x86_64 community-testing-any kde-unstable-x86_64 kde-unstable-any gnome-unstable-x86_64 gnome-unstable-any ) -- cgit v1.2.3-70-g09d2 From e4c40a980236f22e3d9e7ae292efd09a3a8c7af4 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sun, 21 May 2023 00:46:12 +0800 Subject: fix(completion): incorporate repo layout into offload-build completion Use new repo names for build targets. This follows /usr/bin/*-build links other than x86_64_v3 ones. --- src/lib/valid-repos.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/valid-repos.sh') diff --git a/src/lib/valid-repos.sh b/src/lib/valid-repos.sh index 1f823f4..14f90ce 100644 --- a/src/lib/valid-repos.sh +++ b/src/lib/valid-repos.sh @@ -14,7 +14,8 @@ _repos=( # shellcheck disable=2034 _build_repos=( - extra staging testing + core-staging core-testing + extra extra-staging extra-testing multilib multilib-staging multilib-testing gnome-unstable kde-unstable -- cgit v1.2.3-70-g09d2