Permalink
Browse files

added support for Linuxand ci build script

  • Loading branch information...
1 parent 5dcf5b4 commit b79d066dfb4eb5a4992ba57a4d546bf1d9f334ef euforic committed Jan 29, 2013
Showing with 22 additions and 2 deletions.
  1. +11 −1 ci.sh
  2. +11 −1 cli/commands/create_sdk
View
@@ -13,8 +13,18 @@ GIT_VERSION=$(/usr/bin/git log -1 --format="%H")
# Create Time Stamp
DATE=$(date +"%Y%m%d%H%M")
+# Check OS
+OS=$(uname -s)
+
+BB_PATH="/Applications"
+
+# Set bbndk path
+if [ "$OS" == 'Linux' ]; then
+ BB_PATH="/opt"
+fi
+
# Set source for build
-source /Applications/bbndk/bbndk-env.sh
+source $BB_PATH/bbndk/bbndk-env.sh
# Build v8 runtime
cd runtime && make
@@ -2,8 +2,18 @@
VAR_PWD=`pwd`
+# Check OS
+OS=$(uname -s)
+
+BB_PATH="/Applications"
+
+# Set bbndk path
+if [ "$OS" == 'Linux' ]; then
+ BB_PATH="/opt"
+fi
+
echo "Creating Blackberry Libraries"
-source /Applications/bbndk/bbndk-env.sh
+source $BB_PATH/bbndk/bbndk-env.sh
cd ../../src/tibb
make clean

0 comments on commit b79d066

Please sign in to comment.