-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/kbengine/kbengine_demos_a…
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
currPath=$(pwd) | ||
keyStr="/kbengine/" | ||
|
||
bcontain=`echo $currPath|grep $keyStr|wc -l` | ||
|
||
|
||
if [ $bcontain = 0 ] | ||
then | ||
export KBE_ROOT=$(cd ../; pwd) | ||
else | ||
export KBE_ROOT="$(pwd | awk -F "/kbengine/" '{print $1}')/kbengine" | ||
fi | ||
|
||
export KBE_RES_PATH="$KBE_ROOT/kbe/res/:$(pwd):$(pwd)/res:$(pwd)/scripts/" | ||
export KBE_BIN_PATH="$KBE_ROOT/kbe/bin/server/" | ||
|
||
echo KBE_ROOT = \"${KBE_ROOT}\" | ||
echo KBE_RES_PATH = \"${KBE_RES_PATH}\" | ||
echo KBE_BIN_PATH = \"${KBE_BIN_PATH}\" | ||
|
||
$KBE_BIN_PATH/kbcmd --clientsdk=unity --outpath=$currPath/kbengine_unity3d_plugins | ||
$KBE_BIN_PATH/kbcmd --clientsdk=ue4 --outpath=$currPath/kbengine_ue4_plugins |