blob: 8dba4b282f99e052e1442d2aa6cacf47d924b3f6 [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
19 setenv JAVA_HOME `/usr/libexec/java_home -v 1.7`
20 else if ( -d /usr/lib/jvm/java-7-openjdk-amd64 ) then
21 setenv JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
22 endif
23endif
24if ( ! $?MAVEN ) then
25 setenv MAVEN $HOME/Applications/apache-maven-3.2.2
26endif
27if ( ! $?KARAF ) then
28 setenv KARAF $HOME/Applications/apache-karaf-3.0.1
29endif
30setenv KARAF_LOG $KARAF/data/log/karaf.log
31
32alias onos-setup-cell ' ( $ONOS_ROOT/tools/test/bin/onos-show-cell \!^ ) && setenv ONOS_CELL \!^'
33
34set path=( $path $ONOS_ROOT/tools/dev/bin $ONOS_ROOT/tools/test/bin )
35set path=( $path $ONOS_ROOT/tools/build )
36set path=( $path $KARAF/bin )