File: proc-init-cern-afs

package info (click to toggle)
dpm-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,788 kB
  • ctags: 10,782
  • sloc: ansic: 146,136; sh: 13,362; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 955; fortran: 113
file content (24 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# This script is to be 'sourced' into the shell of the
# build environment, to initialize the AFS based Oracle
# environment at CERN.
#
# Please use it as
#   export PROC_INIT=scripts/proc-init-cern-afs
#   make -f Makefile.etics build
#

if [ -d '/afs/cern.ch/project/oracle' ]; then
    source /afs/cern.ch/project/oracle/script/setoraenv.sh -s 10203
fi

# proc-cache for experimental or remote builds, where AFS is not
# available. The actual build will fail, if there are no cached
# C sources for the Pro*C source.
if [ -x "$top_srcdir/scripts/proc" ]; then
    export PATH=$top_srcdir/scripts:$PATH
    if [ -z "$ORACLE_HOME" ]; then
        export ORACLE_HOME=${PROC_CACHE_DIR:-$HOME/.proc_cache_dir}
    fi
fi