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 |
Pavlin Radoslavov | bd13946 | 2014-11-04 10:12:16 -0800 | [diff] [blame] | 19 | 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 Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 22 | else if ( -d /usr/lib/jvm/java-7-openjdk-amd64 ) then |
| 23 | setenv JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 |
| 24 | endif |
| 25 | endif |
| 26 | if ( ! $?MAVEN ) then |
Charles M.C. Chan | e5b610e | 2015-03-19 17:23:16 +0800 | [diff] [blame] | 27 | setenv MAVEN $HOME/Applications/apache-maven-3.3.1 |
Pavlin Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 28 | endif |
Pavlin Radoslavov | bd13946 | 2014-11-04 10:12:16 -0800 | [diff] [blame] | 29 | if ( ! $?KARAF_VERSION ) then |
| 30 | setenv KARAF_VERSION 3.0.2 |
| 31 | endif |
Thomas Vachuska | 255b65f | 2014-11-23 14:25:31 -0800 | [diff] [blame] | 32 | if ( ! $?KARAF_ROOT ) then |
| 33 | setenv KARAF_ROOT $HOME/Applications/apache-karaf-$KARAF_VERSION |
Pavlin Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 34 | endif |
Thomas Vachuska | 255b65f | 2014-11-23 14:25:31 -0800 | [diff] [blame] | 35 | setenv KARAF_LOG $KARAF_ROOT/data/log/karaf.log |
Pavlin Radoslavov | 4e62e9a | 2014-10-16 17:34:23 -0700 | [diff] [blame] | 36 | |
Pavlin Radoslavov | d5dac1b | 2014-10-30 12:55:39 -0700 | [diff] [blame] | 37 | 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] | 38 | |
| 39 | set path=( $path $ONOS_ROOT/tools/dev/bin $ONOS_ROOT/tools/test/bin ) |
| 40 | set path=( $path $ONOS_ROOT/tools/build ) |
Thomas Vachuska | 255b65f | 2014-11-23 14:25:31 -0800 | [diff] [blame] | 41 | set path=( $path $KARAF_ROOT/bin ) |