blob: f2788017eff1709d85458f1cdca5dc9688e54988 [file] [log] [blame]
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -07001#!/bin/tcsh
2# ONOS developer csh/tcsh profile conveniences
3# Simply include in your own $HOME/.cshrc file. E.g.:
4#
5# setenv ONOS_ROOT $HOME/onos
6# if ( -f $ONOS_ROOT/tools/dev/onos.cshrc ) then
7# source $ONOS_ROOT/tools/dev/onos.cshrc
8# endif
9#
10
11# Root of the ONOS source tree
12if ( ! $?ONOS_ROOT ) then
13 setenv ONOS_ROOT $HOME/onos
14endif
15
16# Setup some environmental context for developers
17if ( ! $?JAVA_HOME ) then
18 if ( -x /usr/libexec/java_home ) then
Pavlin Radoslavovbd139462014-11-04 10:12:16 -080019 setenv JAVA_HOME `/usr/libexec/java_home -v 1.8`
20 else if ( -d /usr/lib/jvm/java-8-oracle ) then
21 setenv JAVA_HOME /usr/lib/jvm/java-8-oracle
junhyeokc51f9f62017-06-15 11:40:13 +090022 else if ( -d /usr/lib/jvm/java-8-openjdk-amd64 ) then
23 setenv JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070024 endif
25endif
26if ( ! $?MAVEN ) then
Jian Li98dc9ad2016-01-06 14:05:47 -080027 setenv MAVEN $HOME/Applications/apache-maven-3.3.9
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070028endif
Pavlin Radoslavovbd139462014-11-04 10:12:16 -080029if ( ! $?KARAF_VERSION ) then
Jon Hallb84df5d2017-01-31 11:19:48 -080030 setenv KARAF_VERSION 3.0.8
Pavlin Radoslavovbd139462014-11-04 10:12:16 -080031endif
Thomas Vachuska255b65f2014-11-23 14:25:31 -080032if ( ! $?KARAF_ROOT ) then
33 setenv KARAF_ROOT $HOME/Applications/apache-karaf-$KARAF_VERSION
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070034endif
Thomas Vachuska255b65f2014-11-23 14:25:31 -080035setenv KARAF_LOG $KARAF_ROOT/data/log/karaf.log
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070036
Pavlin Radoslavovd5dac1b2014-10-30 12:55:39 -070037alias onos-setup-cell ' ( env ONOS_CELL=\!^ $ONOS_ROOT/tools/test/bin/onos-show-cell \!^ ) && setenv ONOS_CELL \!^'
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070038
39set path=( $path $ONOS_ROOT/tools/dev/bin $ONOS_ROOT/tools/test/bin )
40set path=( $path $ONOS_ROOT/tools/build )
Thomas Vachuska255b65f2014-11-23 14:25:31 -080041set path=( $path $KARAF_ROOT/bin )