topdir.mk / projects-dir.mk: Add get-pub

Add get-pub for top directory / projects directory level. This is a janware specific target needed for CI. It integrates the current master branch from the new Forgejo-based Git repos.

That said, this will likely need to go along with other release machinery. Packaging is good, but releasing over a bunch of directories is an intricate process, as-is only usable by janware itself, and doesn't need to be part of jw-pkg.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-05-14 12:37:34 +02:00
commit b038baf668
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
2 changed files with 10 additions and 0 deletions

View file

@ -312,6 +312,7 @@ diff-all diff: $(SSH_WRAPPER_SH)
get-official: git-get-official
get-maintainer: git-get-maintainer
get-pub: git-get-pub
get-%: git-get-%
@:
@ -345,6 +346,9 @@ git-pull-all: $(SSH_WRAPPER_SH)
git-get-maintainer: $(SSH_WRAPPER_SH)
PGIT_SH_PROJECTS="$(PROJECTS_WITH_PROJECT_CONF)" $(PGIT_SH) exec make $@
git-get-pub:
PGIT_SH_PROJECTS="$(PROJECTS_WITH_PROJECT_CONF)" $(PGIT_SH) exec make $@
git-get-official: $(SSH_WRAPPER_SH)
PGIT_SH_PROJECTS="$(PROJECTS_WITH_PROJECT_CONF)" $(PGIT_SH) exec make $@

View file

@ -135,6 +135,7 @@ install-links:
get-maintainer: git-get-maintainer
get-official: git-get-official
get-pub: git-get-pub
git-init: git-init.done $(GIT_DESCR)
@ -206,6 +207,11 @@ git-get-official:
git-get-maintainer:
make git-get-$(call proj_query,getval global jw-maintainer)
git-get-pub:
if git remote | grep -q "^pub$$"; then \
git pull pub master ;\
fi
git-get-%:
PGIT_SH_PROJECTS=. $(PGIT_SH) get --refspec $*:$(GIT_MAIN_BRANCH):current-branch