Tricks to keep mods and minetest up-to-date

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Tricks to keep mods and minetest up-to-date

by lightonflux » Thu Dec 19, 2013 18:06

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?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Dec 19, 2013 18:16

I just have to hit "Ctrl + S" in my editor to get the latest changes for my mods (before anyone else gets them :D).
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Thu Dec 19, 2013 20:06

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.
Last edited by Krock on Thu Dec 19, 2013 20:08, edited 1 time in total.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Dec 20, 2013 08:53

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.
Last edited by rubenwardy on Fri Dec 20, 2013 08:54, edited 1 time in total.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

by lightonflux » Fri Dec 20, 2013 14:11

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. :)
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 6 guests