Pavlin Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 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 | |
Pavlin Radoslavov | d5dac1b | 2014-10-30 12:55:39 -0700 | [diff] [blame^] | 32 | alias onos-setup-cell ' ( env ONOS_CELL=\!^ $ONOS_ROOT/tools/test/bin/onos-show-cell \!^ ) && setenv ONOS_CELL \!^' |
Pavlin Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 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 ) |