Updated readme
parent
6c0ad83a97
commit
1414a9f960
11
README.md
11
README.md
|
@ -8,15 +8,18 @@ Install:
|
||||||
--------
|
--------
|
||||||
- cd into your main minetest-folder
|
- cd into your main minetest-folder
|
||||||
- git clone git://github.com/iqualfragile/minetest_scripts.git
|
- git clone git://github.com/iqualfragile/minetest_scripts.git
|
||||||
- ln minetest_scripts/update.sh mods/minetest/update.sh
|
- chmod +x update.sh
|
||||||
- ln minetest_scripts/start.sh start.sh
|
- cp singlemods.example singlemods
|
||||||
|
- cp modfolders.example modfolders
|
||||||
|
- add your own locations to singlemods/modfolders
|
||||||
|
|
||||||
git clone git://github.com/iqualfragile/minetest_scripts.git && ln minetest_scripts/update.sh mods/minetest/update.sh && ln minetest_scripts/start.sh start.sh
|
git clone git://github.com/iqualfragile/minetest_scripts.git && chmod +x update.sh && cp singlemods.example singlemods && cp modfolders.example modfolders
|
||||||
|
|
||||||
update.sh
|
update.sh
|
||||||
---------
|
---------
|
||||||
Automaticly updates mods which were cloned from a repo
|
Automaticly updates mods which were cloned from a repo
|
||||||
|
merges your local changes when possible so you can customize your experience while still being up-to-date
|
||||||
|
|
||||||
start.sh
|
start.sh
|
||||||
--------
|
--------
|
||||||
Updates & rebuilds minetest, updatest minetest_game, calls update.sh and starts the minetest-server
|
Updates everything, rebuilds minetest and starts the server
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
..
|
|
||||||
../games/minetest_game
|
../games/minetest_game
|
||||||
|
|
|
@ -1,31 +1,44 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# updates all mods wich are cloned from an git- or hg-repo
|
# updates all mods wich are cloned from an git- or hg-repo
|
||||||
# put into minetest/mods/minetest
|
# put into minetest/mods/minetest
|
||||||
|
dir="$(pwd)"
|
||||||
|
|
||||||
function up {
|
function gitup {
|
||||||
cd $1
|
cd $1
|
||||||
#echo $1
|
#echo $1
|
||||||
git pull&
|
echo $(git stash save > /dev/zero ; git pull; git stash pop > /dev/zero ) 2> /dev/zero &
|
||||||
cd ..
|
cd $dir
|
||||||
}
|
}
|
||||||
function hgup {
|
function hgup {
|
||||||
cd $1
|
cd $1
|
||||||
hg pull -u&
|
hg pull -u 2> /dev/zero &
|
||||||
cd ..
|
cd $dir
|
||||||
}
|
}
|
||||||
|
function up {
|
||||||
|
gitup $1
|
||||||
# update mods using git (github…)
|
hgup $1
|
||||||
mods="$(find -name '*.git' -printf '%h\n' | cut -c 3-)"
|
}
|
||||||
|
function dirup {
|
||||||
|
# update mods using git (github, gitorious,…)
|
||||||
|
mods="$(find $1 -name '*.git' -printf '%h\n')"
|
||||||
for line in $mods; do
|
for line in $mods; do
|
||||||
up $line
|
gitup $line
|
||||||
done
|
done
|
||||||
|
|
||||||
# update mods using hg
|
# update mods using hg
|
||||||
mods="$(find -name '*.hg' -printf '%h\n' | cut -c 3-)"
|
mods="$(find $1 -name '*.hg' -printf '%h\n')"
|
||||||
for line in $mods; do
|
for line in $mods; do
|
||||||
up $line
|
up $line
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
for modfolder in $(cat modfolders); do
|
||||||
|
dirup $modfolder
|
||||||
|
done
|
||||||
|
|
||||||
|
for singlemod in $(cat singlemods); do
|
||||||
|
up $singlemod
|
||||||
|
done
|
||||||
|
|
||||||
wait
|
wait
|
||||||
echo 'Done updating plugins'
|
echo 'Done updating stuffs'
|
||||||
|
|
Loading…
Reference in New Issue