-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathupdateRecastnavigationSvn.sh
executable file
·39 lines (35 loc) · 1.36 KB
/
updateRecastnavigationSvn.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
##
# Run this script after updating recastnavigation svn to integrate new
# version of recastnavigation with ogreRecast.
#
# The directory tree is supposed to be as following:
# projectRoot/
# recastnavigation/ (This folder contains an svn checkout of recastnavigation)
# Detour
# DetourCrowd
# Recast
# RecastDemo
# ...
# ogreRecast/ (This project git/hg checkout. This script should be run from this path.)
# src/
# include/
# ...
#
# This script expects you did an svn update of recastnavigation before running.
# Note that newer versions of recastnavigation might introduce incompatibility
# with the current ogreRecast code.
##
pushd ../
# Copy neccessary source files over to ogreRecast project
cp recastnavigation/Recast/Source/*cpp ogreRecast/src/Recast/
cp recastnavigation/Detour/Source/*cpp ogreRecast/src/Detour/
cp recastnavigation/DetourCrowd/Source/*cpp ogreRecast/src/DetourCrowd/
cp recastnavigation/DetourTileCache/Source/*cpp ogreRecast/src/DetourTileCache/
cp recastnavigation/Recast/Include/*h ogreRecast/include/Recast/
cp recastnavigation/Detour/Include/*h ogreRecast/include/Detour
cp recastnavigation/DetourCrowd/Include/*h ogreRecast/include/DetourCrowd/
cp recastnavigation/DetourTileCache/Include/*h ogreRecast/include/DetourTileCache/
# Apply a small patch that fixes include paths
patch -p0 < ogreRecast/patchRecastnavigationSvn.patch
popd