IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2009, 11:46:32 AM (17 years ago)
Author:
eugene
Message:

allow ippMonitor installation to define specific ipprc.config file; remove image display from non-image camera page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/configure.tcsh

    r21137 r24662  
    1818set libdir  = ""
    1919set datadir = ""
     20set site = ""
    2021
    2122set DBI     = "DB"
     
    107108   endif
    108109   breaksw;
     110  case --site*
     111   if ("$1" == "--site") then
     112     shift
     113     set site = $1
     114   else
     115     set site = `echo $1 | tr = ' ' | awk '{print $2}'`
     116   endif
     117   breaksw;
    109118  case --useMDB2
    110119   set DBI = "MDB2"
     
    129138echo "libdir: $libdir"
    130139echo "datadir:$datadir"
     140echo "site:   $site"
    131141echo "htdocs: $htdocs"
    132142echo "dbhost: $dbhost"
     
    157167  if ("$prefix" == "") goto usage
    158168  set datadir = $prefix/share
     169endif
     170
     171# SITE defines the location of the ipprc.config file
     172if ("$site" == "") then
     173  if ("$datadir" == "") goto usage
     174  set site = $datadir/ippconfig/ipprc.config
    159175endif
    160176
     
    174190cat tmp.1           | sed "s|@BINDIR@|$bindir|"  > tmp.2
    175191cat tmp.2           | sed "s|@PERLLIB@|$libdir|" > tmp.1
    176 cat tmp.1           | sed "s|@SITE@|$datadir|"   > tmp.2
     192cat tmp.1           | sed "s|@SITE@|$site|"      > tmp.2
    177193cat tmp.2           | sed "s|@DBI@|$DBI|"        > raw/site.php
    178194rm -f tmp.1 tmp.2
     
    183199
    184200usage:
     201if ($#args > 1) then
     202  echo unrecognized options: $args
     203endif
     204
    185205cat <<EOF
    186206USAGE: configure [OPTION]
    187207
    188 echo $#args
    189 echo remaining args: $args
    190 
    191208set the WWW installation directory root with --htdocs
    192209set the IPP installation directory root with --prefix
     
    194211set the database host, user, password with: --dbhost, --dbuser, -dbpass
    195212 
    196 either --prefix or all of --bindir, --libdir, --datadir are required
     213either --prefix or both --bindir and --libdir and [--datadir or --site] are required
     214
     215if both --datadir and --site are defined, --site overrides the ipprc.config definition
    197216
    198217Configuration:
     
    206225  --libdir=DIR           object code libraries [PREFIX/lib/$ARCH]
    207226  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     227  --site=PATH            location of the ipprc.config file [DATADIR/ippconfig/ipprc.config]
    208228
    209229EOF
Note: See TracChangeset for help on using the changeset viewer.