Search
j0ke.net Open Build Service
>
Projects
>
ORACLE
:
XE
>
oracle-instantclient-config
> oracle-instantclient-config.tmpl
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File oracle-instantclient-config.tmpl of Package oracle-instantclient-config (Revision 4)
Currently displaying revision
4
,
show latest
#!/bin/sh # # Oracle InstantClient SDK config file # Jean-Christophe Duberga - Bordeaux 2 University # prefix=/usr version=%VERSION% major=$(echo ${version} | awk -F. '{print $1}') exec_prefix=${prefix} exec_prefix_set=no incdirs="-I${exec_prefix}/include/oracle/${version}/client" libdirs="-L${exec_prefix}/%LIB%/oracle/${version}/%CLIENT%/lib " usage="\ Usage: oracle-instantclient-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo $prefix ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo ${exec_prefix} ;; --version) echo ${version} ;; --cflags) echo ${incdirs} ;; --libs) echo $libdirs -lclntsh -lnnz${major} -locci -lociei -locijdbc${major} ;; --static-libs) echo "No static libs" 1>&2 exit 1 ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done