aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/tools/dev/onos.cshrc
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/tools/dev/onos.cshrc')
-rw-r--r--framework/src/onos/tools/dev/onos.cshrc41
1 files changed, 41 insertions, 0 deletions
diff --git a/framework/src/onos/tools/dev/onos.cshrc b/framework/src/onos/tools/dev/onos.cshrc
new file mode 100644
index 00000000..e5d8e628
--- /dev/null
+++ b/framework/src/onos/tools/dev/onos.cshrc
@@ -0,0 +1,41 @@
+#!/bin/tcsh
+# ONOS developer csh/tcsh profile conveniences
+# Simply include in your own $HOME/.cshrc file. E.g.:
+#
+# setenv ONOS_ROOT $HOME/onos
+# if ( -f $ONOS_ROOT/tools/dev/onos.cshrc ) then
+# source $ONOS_ROOT/tools/dev/onos.cshrc
+# endif
+#
+
+# Root of the ONOS source tree
+if ( ! $?ONOS_ROOT ) then
+ setenv ONOS_ROOT $HOME/onos
+endif
+
+# Setup some environmental context for developers
+if ( ! $?JAVA_HOME ) then
+ if ( -x /usr/libexec/java_home ) then
+ setenv JAVA_HOME `/usr/libexec/java_home -v 1.8`
+ else if ( -d /usr/lib/jvm/java-8-oracle ) then
+ setenv JAVA_HOME /usr/lib/jvm/java-8-oracle
+ else if ( -d /usr/lib/jvm/java-7-openjdk-amd64 ) then
+ setenv JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
+ endif
+endif
+if ( ! $?MAVEN ) then
+ setenv MAVEN $HOME/Applications/apache-maven-3.3.1
+endif
+if ( ! $?KARAF_VERSION ) then
+ setenv KARAF_VERSION 3.0.3
+endif
+if ( ! $?KARAF_ROOT ) then
+ setenv KARAF_ROOT $HOME/Applications/apache-karaf-$KARAF_VERSION
+endif
+setenv KARAF_LOG $KARAF_ROOT/data/log/karaf.log
+
+alias onos-setup-cell ' ( env ONOS_CELL=\!^ $ONOS_ROOT/tools/test/bin/onos-show-cell \!^ ) && setenv ONOS_CELL \!^'
+
+set path=( $path $ONOS_ROOT/tools/dev/bin $ONOS_ROOT/tools/test/bin )
+set path=( $path $ONOS_ROOT/tools/build )
+set path=( $path $KARAF_ROOT/bin )