diff --git a/applyPatches.sh b/applyPatches.sh index 4308d9f..32585f9 100755 --- a/applyPatches.sh +++ b/applyPatches.sh @@ -1,5 +1,6 @@ #!/bin/bash +PS1="$" basedir=`pwd` echo "Rebuilding Forked projects.... " diff --git a/rebuildPatches.sh b/rebuildPatches.sh index d56ed82..6785d24 100755 --- a/rebuildPatches.sh +++ b/rebuildPatches.sh @@ -1,7 +1,9 @@ #!/bin/bash +PS1="$" basedir=`pwd` echo "Rebuilding patch files from current fork state..." + function cleanupPatches { cd "$1" for patch in *.patch; do @@ -20,6 +22,7 @@ function cleanupPatches { fi done } + function savePatches { what=$1 target=$2 diff --git a/upstreamMerge.sh b/upstreamMerge.sh index 6d71e60..c95e357 100755 --- a/upstreamMerge.sh +++ b/upstreamMerge.sh @@ -1,10 +1,14 @@ #!/bin/bash + +PS1="$" basedir=`pwd` + function update { cd "$basedir/$1" git fetch && git reset --hard origin/master cd ../ git add $1 } + update Bukkit update CraftBukkit