Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
explicitly build on top of 4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlerer committed Nov 15, 2016
1 parent 33fbf5d commit 7e01107
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@ set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if git rev-parse 4.13-UETorch > /dev/null 2>&1; then
if [ $(git rev-parse 4.13-UETorch^1) != $(git rev-parse 4.13) ]; then
echo "git branch 4.13-UETorch already exists and has your commits on it. If you really want to re-run setup, you'll need to clean up and delete this branch yourself."
exit 1
fi
git checkout 4.13
git branch -D 4.13-UETorch
fi

echo "=== Checking out the baseline UE4 commit... ==="
git checkout 4.13

echo "=== Patching UE4 ==="
cd $DIR/../../..
git branch UETorch_base
git checkout UETorch_base
git branch 4.13-UETorch
git checkout 4.13-UETorch
git apply $DIR/UnrealEngine.patch
git add -u
git commit -m "UETorch patches"
Expand Down

0 comments on commit 7e01107

Please sign in to comment.