Added config file for csh/tcsh. It is based on the 'bash_profile' file,
but with several differences: * Default ONOS_ROOT value is $HOME/onos instead of $HOME/onos-next * Convenience utility functions and aliases are not included * $MAVEN/bin is not included in the executable path * The 'cell' funcion from BASH is renamed to 'onos-setup-cell' Also, 'onos-setup-cell' always requires an argument: the cell name Displaying the current cell setup can be done by the 'onos-show-cell' script
Showing
1 changed file
with
36 additions
and
0 deletions
tools/dev/onos.cshrc
0 → 100644
1 | +#!/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 | ||
12 | +if ( ! $?ONOS_ROOT ) then | ||
13 | + setenv ONOS_ROOT $HOME/onos | ||
14 | +endif | ||
15 | + | ||
16 | +# Setup some environmental context for developers | ||
17 | +if ( ! $?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 | ||
23 | +endif | ||
24 | +if ( ! $?MAVEN ) then | ||
25 | + setenv MAVEN $HOME/Applications/apache-maven-3.2.2 | ||
26 | +endif | ||
27 | +if ( ! $?KARAF ) then | ||
28 | + setenv KARAF $HOME/Applications/apache-karaf-3.0.1 | ||
29 | +endif | ||
30 | +setenv KARAF_LOG $KARAF/data/log/karaf.log | ||
31 | + | ||
32 | +alias onos-setup-cell ' ( $ONOS_ROOT/tools/test/bin/onos-show-cell \!^ ) && setenv ONOS_CELL \!^' | ||
33 | + | ||
34 | +set path=( $path $ONOS_ROOT/tools/dev/bin $ONOS_ROOT/tools/test/bin ) | ||
35 | +set path=( $path $ONOS_ROOT/tools/build ) | ||
36 | +set path=( $path $KARAF/bin ) |
-
Please register or login to post a comment