minetest-mods/README.md

51 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

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,
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`
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
After cloning, use git to check out all submodules like so:
```sh
git submodule update --init
```
Then start minetest, edit `world.mt` to enable all desired modules, and restart
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
<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:
~~~sh
2020-12-20 02:19:27 -08:00
cat <<SCRIPT > .git/hooks/push-to-checkout
#!/bin/sh
quilt pop -a
2020-12-20 02:19:27 -08:00
git read-tree -u -m HEAD "$1"
git submodule update --init
2020-12-20 02:19:27 -08:00
quilt push -a
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
~~~