aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bin/clion_wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bin/clion_wrapper.sh')
-rwxr-xr-xtools/bin/clion_wrapper.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/bin/clion_wrapper.sh b/tools/bin/clion_wrapper.sh
new file mode 100755
index 00000000..2c40ed55
--- /dev/null
+++ b/tools/bin/clion_wrapper.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+script_dir=$(dirname "$BASH_SOURCE")
+
+export DISTILLERY_BUILD_NAME=-debug
+
+cd "${script_dir}"
+source ./export_ccnx_env.sh
+
+cd ${DISTILLERY_ROOT_DIR}/src
+
+osType=`uname -s`
+
+case "$osType" in
+ Darwin)
+ open /Applications/CLion.app
+ ;;
+ Linux)
+ clion.sh
+ ;;
+ *)
+ echo "System not recognized, edit ${0} to add support"
+ ;;
+esac
+