2016-04-02 03:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-01-26 06:04:43 +00:00
|
|
|
|
|
|
|
PS1="$"
|
2016-04-02 23:34:27 +00:00
|
|
|
basedir=$(realpath "$1")
|
2016-04-02 03:55:54 +00:00
|
|
|
workdir="$basedir/work"
|
2016-01-26 06:04:43 +00:00
|
|
|
|
|
|
|
function update {
|
2016-04-02 03:55:54 +00:00
|
|
|
cd "$workdir/$1"
|
2016-01-26 06:04:43 +00:00
|
|
|
git fetch && git reset --hard origin/master
|
|
|
|
cd ../
|
|
|
|
git add $1
|
|
|
|
}
|
|
|
|
|
|
|
|
update Bukkit
|
|
|
|
update CraftBukkit
|
2016-03-21 17:32:05 +00:00
|
|
|
update Spigot
|