PaperMC/scripts/upstreamMerge.sh

26 lines
391 B
Bash
Raw Normal View History

2016-04-01 22:55:54 -05:00
#!/usr/bin/env bash
(
set -e
PS1="$"
basedir="$(cd "$1" && pwd -P)"
2016-04-01 22:55:54 -05:00
workdir="$basedir/work"
gitcmd="git -c commit.gpgsign=false"
function update {
2016-04-01 22:55:54 -05:00
cd "$workdir/$1"
$gitcmd fetch && $gitcmd reset --hard origin/master
cd ../
$gitcmd add $1
}
update Bukkit
update CraftBukkit
update Spigot
2016-08-19 16:00:59 -05:00
2017-05-20 23:41:39 -05:00
if [[ "$2" = "all" || "$2" = "a" ]] ; then
2016-08-19 16:00:59 -05:00
update BuildData
update Paperclip
fi
)