2016-04-02 05:55:54 +02:00
|
|
|
#!/usr/bin/env bash
|
2016-01-26 07:04:43 +01:00
|
|
|
|
2016-04-03 09:23:19 +02:00
|
|
|
(
|
|
|
|
set -e
|
2016-01-26 07:04:43 +01:00
|
|
|
PS1="$"
|
2016-04-03 10:35:51 +02:00
|
|
|
basedir="$(cd "$1" && pwd -P)"
|
2016-04-02 05:55:54 +02:00
|
|
|
workdir="$basedir/work"
|
2018-05-24 20:41:50 +02:00
|
|
|
gitcmd="git -c commit.gpgsign=false"
|
2016-01-26 07:04:43 +01:00
|
|
|
|
|
|
|
function update {
|
2016-04-02 05:55:54 +02:00
|
|
|
cd "$workdir/$1"
|
2019-04-03 03:46:32 +02:00
|
|
|
$gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/master
|
2016-01-26 07:04:43 +01:00
|
|
|
cd ../
|
2018-05-24 20:41:50 +02:00
|
|
|
$gitcmd add $1
|
2016-01-26 07:04:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
update Bukkit
|
|
|
|
update CraftBukkit
|
2016-03-21 18:32:05 +01:00
|
|
|
update Spigot
|
2016-08-19 23:00:59 +02:00
|
|
|
|
2017-05-21 06:41:39 +02:00
|
|
|
if [[ "$2" = "all" || "$2" = "a" ]] ; then
|
2016-08-19 23:00:59 +02:00
|
|
|
update BuildData
|
|
|
|
update Paperclip
|
|
|
|
fi
|
2016-04-03 09:23:19 +02:00
|
|
|
)
|