Page 1 of 1

Tricks to keep mods and minetest up-to-date

PostPosted: Thu Dec 19, 2013 18:06
by lightonflux
What are your tricks to keep your mods, texture packs, minetest (-dev) up-to-date and automate the things you don't want to do?

Here are mine:

I use an alias to update the dev version of minetest:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
alias minetest-dev-update='cd ~/.minetest-dev && pwd && time rgit && time cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 && time make -j2 && echo Done'


As so see the alias runs rgit which is another alias to keep all my git repos up-to-date:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
alias rgit='find . -type d -name .git -exec sh -c "cd "{}"/../ && pwd && git pull" \;'


It will update all git repos it can find in a directory and all it sub dirs.

I don't run these commands via cron for several reasons, but most important one: needs internet connection and / or cpu time, both is not always available and i don't want to have it in the background.

And i linked the mod folder of my stable MT install, because i don't want to manage two sets of mods.

What are your tricks to automate / simplify your MT experience?

PostPosted: Thu Dec 19, 2013 18:16
by PilzAdam
I just have to hit "Ctrl + S" in my editor to get the latest changes for my mods (before anyone else gets them :D).

PostPosted: Thu Dec 19, 2013 20:06
by Krock
I guess those commands will not work under Win32 :/

My tricks are: Making mod, 7zipping it, find fails, zip again, upload, update post, update images, post release post.

This trick takes (from step 2 beginning) just about 20 minutes.

PostPosted: Fri Dec 20, 2013 08:53
by rubenwardy
Krock wrote:I guess those commands will not work under Win32 :/

My tricks are: Making mod, 7zipping it, find fails, zip again, upload, update post, update images, post release post.

This trick takes (from step 2 beginning) just about 20 minutes.


I think he means updating the mods in minetest/mods and the client in minetest/bin,
not releasing a mod.

PS: https://github.com/
I am more likely to use a mod if it has github, or similar.

PostPosted: Fri Dec 20, 2013 14:11
by lightonflux
Krock wrote:I guess those commands will not work under Win32 :/.


Not out of the box, but take a look at cygwin:

http://cygwin.com/

If you have questions or want to switch just ask. :)