Browse Source

Use submodule for minetest_game

master
Katherine Peeters 9 months ago
parent
commit
f13ee49f79
Signed by: katp32 <alden.peeters@leagueh.xyz> GPG Key ID: CDAD63AE9DA934BE
5 changed files with 15 additions and 8 deletions
  1. +3
    -0
      .gitmodules
  2. +4
    -4
      README.md
  3. +0
    -3
      git-mods.txt
  4. +1
    -0
      submods/minetest_game
  5. +7
    -1
      update.sh

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
[submodule "submods/minetest_game"]
path = submods/minetest_game
url = https://github.com/minetest/minetest_game.git

+ 4
- 4
README.md View File

@@ -1,12 +1,12 @@
# Comtest

A Minetest modpack focused on stability, originally designed for the LOH Minetest server.
A Minetest game focused on stability and completion, originally designed for the LOH Minetest server.

## Installation

Unlike most modpacks, this doesn't just work out of the box. You will need to run `update.sh` to properly build the mod. What this does is download the latest versions of all the mods included in the pack.
Unlike most games, this doesn't just work out of the box. You will need to run `update.sh` to properly build the mod. What this does is download the latest versions of all the mods included in the pack.

Once this is done, the `mods` folder will contain the modpack. It is recommended that you create a symlink in your mods folder to this directory.
Once this is done, the `game` folder will contain the complete game. It is recommended that you create a symlink in your mods folder to this directory, eg using `ln -s [REPO_PATH]/game ~/.minetest/games/cometest`.

## Mod list

@@ -20,4 +20,4 @@ You can generate more patches using `diff -Naur`. Note that patches are applied

## Version

This modpack has no versions. It's like a rolling release distro, except it's a sinful Lua program instead of a distro.
This game has no versions. It's like a rolling release distro, except it's a sinful Lua program instead of a distro.

+ 0
- 3
git-mods.txt View File

@@ -2,9 +2,6 @@
# List of mods to be fetched using Git
#

# Extend minetest_game
https://github.com/minetest/minetest_game.git

# Food
https://repo.or.cz/minetest_hbhunger.git
# TODO: Mod name conflict with minetest_game's farming


+ 1
- 0
submods/minetest_game

@@ -0,0 +1 @@
Subproject commit 86782651253b757a633b473a56a56ff11c76982e

+ 7
- 1
update.sh View File

@@ -2,6 +2,7 @@

OUTDIR=game/mods
PAKDIR=packs
SUBDIR=submods

# Create directories if they don't exist
mkdir -p $OUTDIR
@@ -16,7 +17,12 @@ for pack in $PAKDIR/*; do
if [ -d $OUTDIR-old/$(basename $pack) ]; then
rm -rf $OUTDIR-old/$(basename $pack)
fi
mv $pack $OUTDIR-old/
cp -R $pack $OUTDIR-old/
done

# Restore submodules
for mod in $SUBDIR/*; do
mv $mod $OUTDIR/
done

# Update Git repos


Loading…
Cancel
Save