From a261b4edc0abccb78093ed0d70a6b89608b00ac5 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 5 Jun 2024 14:57:00 -0400 Subject: [PATCH] game as submodule for easy instalation and distribution.. * minetest developers were so stupid or what? why not a simple submodule from git? so easy! * do as: * `sed s#.*games/minetest#!games/minetest#g .gitignore` * `git add .gitignore && git commit -m "submodule step 1"` * `git submodule add -b stable-5.2 https://codeberg.org/minenux/minetest-game-minetest game/minetest` * `git add --all && git commit --amend -m "ubmodule step 2` * `sed s#.*games/minetest#games/minetest#g .gitignore` * `git add --all && git commit --amend -m "ubmodule step 3 final` * update CI for gitlab to use the submodule and setup the game also --- .gitignore | 1 + .gitlab-ci.yml | 5 +++++ .gitmodules | 4 ++++ games/minetest | 1 + 4 files changed, 11 insertions(+) create mode 100644 .gitmodules create mode 160000 games/minetest diff --git a/.gitignore b/.gitignore index 0be7d139b..157350346 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ build/.cmake/ /bin/ /games/* !/games/devtest/ +!/games/minetest /cache /textures/* !/textures/base/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 25ed09ce7..773b5a2bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,11 @@ # packages moved to https://build.opensuse.org/project/show/home:venenux:minenux # in future we only build here, or made apk packs for alpine +variables: + GIT_SUBMODULE_STRATEGY: recursive + GIT_SUBMODULE_DEPTH: 1 + GIT_STRATEGY: clone + stages: - build diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..55a8d59f6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "games/minetest"] + path = games/minetest + url = https://codeberg.org/minenux/minetest-game-minetest + branch = stable-5.2 diff --git a/games/minetest b/games/minetest new file mode 160000 index 000000000..6dac4d264 --- /dev/null +++ b/games/minetest @@ -0,0 +1 @@ +Subproject commit 6dac4d264b5ad50b83499a0927196c935d844885