2016-04-01 22:55:54 -05:00
|
|
|
#!/usr/bin/env bash
|
2016-01-26 00:04:43 -06:00
|
|
|
|
2016-04-03 02:23:19 -05:00
|
|
|
(
|
|
|
|
set -e
|
2016-01-26 00:04:43 -06:00
|
|
|
PS1="$"
|
2016-04-03 03:35:51 -05:00
|
|
|
basedir="$(cd "$1" && pwd -P)"
|
2016-04-01 22:55:54 -05:00
|
|
|
workdir="$basedir/work"
|
2016-01-26 00:04:43 -06:00
|
|
|
|
|
|
|
function update {
|
2016-04-01 22:55:54 -05:00
|
|
|
cd "$workdir/$1"
|
2016-01-26 00:04:43 -06:00
|
|
|
git fetch && git reset --hard origin/master
|
|
|
|
cd ../
|
|
|
|
git add $1
|
|
|
|
}
|
|
|
|
|
|
|
|
update Bukkit
|
|
|
|
update CraftBukkit
|
2016-03-21 12:32:05 -05:00
|
|
|
update Spigot
|
2016-04-03 02:23:19 -05:00
|
|
|
)
|