From f2050c955dea5c6377dd954e9ac186bed6e16a60 Mon Sep 17 00:00:00 2001 From: cylgom Date: Sat, 21 Sep 2019 17:46:45 +0200 Subject: [PATCH] add remotes tool --- makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index d9db2d5..6417145 100644 --- a/makefile +++ b/makefile @@ -88,7 +88,12 @@ clean: @rm -rf $(BIND) $(OBJD) valgrind.log @(cd $(SUBD)/termbox_next && $(MAKE) clean) -github: +remotes: + @echo "registering remotes" + @git remote add github git@github.com:cylgom/$(NAME).git + @git remote add gitea ssh://git@git.cylgom.net:2999/cylgom/$(NAME).git + +github: remotes @echo "sourcing submodules from https://github.com" @cp .github .gitmodules @git submodule sync @@ -96,7 +101,7 @@ github: @cd $(SUBD)/argoat && make github @git submodule update --init --recursive --remote -gitea: +gitea: remotes @echo "sourcing submodules from https://git.cylgom.net" @cp .gitea .gitmodules @git submodule sync