2016-04-02 03:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-01-26 06:04:43 +00:00
|
|
|
|
2016-04-03 07:23:19 +00:00
|
|
|
(
|
|
|
|
set -e
|
2016-01-26 06:04:43 +00:00
|
|
|
PS1="$"
|
2016-04-03 08:35:51 +00:00
|
|
|
basedir="$(cd "$1" && pwd -P)"
|
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
|
2016-08-19 21:00:59 +00:00
|
|
|
|
|
|
|
if [[ "$2" = "all" ]] ; then
|
|
|
|
update BuildData
|
|
|
|
update Paperclip
|
|
|
|
fi
|
2016-04-03 07:23:19 +00:00
|
|
|
)
|