blob: 2fdf339ddc78ca5f5734eb4d4a9990e55c64a6bb [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
Pavlin Radoslavov4e62e9a2014-10-16 17:34:23 -070022 else if ( -d /usr/lib/jvm/java-7-openjdk-amd64 ) then
23 setenv JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
24 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
Thomas Vachuska5630c612015-03-24 12:24:12 -070030 setenv KARAF_VERSION 3.0.3
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 )