2017-11-04 14:05:53 -07:00
|
|
|
A Collection of Minetest Mods
|
|
|
|
=============================
|
2017-11-04 14:01:39 -07:00
|
|
|
|
2017-11-04 14:05:53 -07:00
|
|
|
This is a collection of mods as used by our personal minetest server. Each mod
|
|
|
|
is either included as a git-submodule (preferred) or, if that is not possible,
|
2020-12-13 06:49:32 -08:00
|
|
|
directly contained in this repository. Additionally, local modifications of
|
|
|
|
certain modes (like disabling particular features) are included as separate
|
|
|
|
patches in the `patches` directory. These can be applied with `quilt push -a`
|
2020-12-20 00:56:51 -08:00
|
|
|
Before updating mods, unapply the patches with `quilt pop -a`. See also section
|
|
|
|
on [setting up git](#git-setup) below.
|
2017-11-04 14:01:39 -07:00
|
|
|
|
2021-10-28 23:20:44 -07:00
|
|
|
After cloning, use git to check out all submodules like so:
|
2020-12-13 03:26:45 -08:00
|
|
|
|
|
|
|
```sh
|
|
|
|
git submodule update --init
|
|
|
|
```
|
|
|
|
|
2021-10-28 23:20:44 -07:00
|
|
|
Then start minetest, edit `world.mt` to enable all desired modules, and restart
|
2020-12-13 03:26:45 -08:00
|
|
|
again. Enjoy! ☺
|
|
|
|
|
2017-11-04 14:05:53 -07:00
|
|
|
For licenses and copyrights see the corresponding mods. All that remains is
|
|
|
|
licensed under an MIT License.
|
2020-12-13 02:51:29 -08:00
|
|
|
|
2020-12-20 00:56:51 -08:00
|
|
|
<a name="git-setup">Setting up git hooks for remote updating</a>
|
|
|
|
-----------------------------------------------------------------
|
|
|
|
|
|
|
|
To automatically update a local copy of this git repository on updates, perform
|
|
|
|
the following configuration
|
|
|
|
|
|
|
|
- Make the local copy update its worktree on push, instead of barfing:
|
|
|
|
|
|
|
|
~~~sh
|
|
|
|
git config receive.denyCurrentBranch updateInstead
|
|
|
|
~~~
|
|
|
|
|
2020-12-20 02:19:27 -08:00
|
|
|
- When updating the worktree after push, first remove all patches, then update,
|
|
|
|
then update all submodules, and then reapply all patches:
|
2020-12-20 00:56:51 -08:00
|
|
|
|
|
|
|
~~~sh
|
2020-12-20 02:19:27 -08:00
|
|
|
cat <<SCRIPT > .git/hooks/push-to-checkout
|
2020-12-20 00:56:51 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
quilt pop -a
|
2020-12-20 02:19:27 -08:00
|
|
|
git read-tree -u -m HEAD "$1"
|
2020-12-20 00:56:51 -08:00
|
|
|
git submodule update --init
|
2020-12-20 02:19:27 -08:00
|
|
|
quilt push -a
|
2020-12-20 00:56:51 -08:00
|
|
|
chmod -R a+rX .
|
2021-02-25 05:50:05 -08:00
|
|
|
SCRIPT
|
2020-12-20 02:19:27 -08:00
|
|
|
chmod +x .git/hooks/push-to-checkout
|
2020-12-20 00:56:51 -08:00
|
|
|
~~~
|