IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2022, 3:17:40 PM (4 years ago)
Author:
eugene
Message:

add PLTDIR configure option (less hard-wired)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/ippMonitor/configure.tcsh

    r41730 r42201  
    1818set wwwbin  = ""
    1919set libdir  = ""
     20set pltdir  = ""
    2021set datadir = ""
    2122set site = ""
     
    109110   endif
    110111   breaksw;
     112  case --pltdir*
     113   if ("$1" == "--pltdir") then
     114     shift
     115     set pltdir = $1
     116   else
     117     set pltdir = `echo $1 | tr = ' ' | awk '{print $2}'`
     118   endif
     119   breaksw;
    111120  case --datadir*
    112121   if ("$1" == "--datadir") then
     
    127136  case --useMDB2
    128137   set DBI = "MDB2"
     138   breaksw;
     139  case --usePDO
     140   set DBI = "PDO"
    129141   breaksw;
    130142  case --help:
     
    150162echo "wwwbin: $wwwbin"
    151163echo "libdir: $libdir"
     164echo "pltdir: $pltdir"
    152165echo "datadir:$datadir"
    153166echo "site:   $site"
     
    182195endif
    183196
     197# LIBDIR set the install lib directory
     198if ("$pltdir" == "") then
     199  if ("$prefix" == "") goto usage
     200  set pltdir = $prefix/plots
     201endif
     202
    184203# DATADIR holds the general non-binary files
    185204if ("$datadir" == "") then
     
    198217# convert Makefile.in to Makefile:
    199218if (-e Makefile) mv -f Makefile Makefile~
    200 cat Makefile.in | sed "s|@HTDOCS@|$htdocs|"    > tmp.1
    201 cat tmp.1       | sed "s|@HOST2@|$hostname2|"  > tmp.2
    202 cat tmp.2       | sed "s|@BINDIR@|$bindir|"    > tmp.1
    203 cat tmp.1       | sed "s|@WWWBIN@|$wwwbin|"    > Makefile
     219cat Makefile.in | sed "s|@HTDOCS@|$htdocs|"  > tmp.1
     220cat tmp.1       | sed "s|@PLTDIR@|$pltdir|"  > tmp.2
     221cat tmp.2       | sed "s|@BINDIR@|$bindir|"  > tmp.1
     222cat tmp.1       | sed "s|@WWWBIN@|$wwwbin|"  > Makefile
    204223rm -f tmp.1 tmp.2
    205224
Note: See TracChangeset for help on using the changeset viewer.