IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 18, 2019, 8:49:27 PM (7 years ago)
Author:
ippitc
Message:

CCL: some updates for installation easily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/configure.tcsh

    r39498 r41126  
    134134
    135135set hostname = `hostname -f`
     136set hostname2 = `hostname`
    136137
    137138echo
     
    182183if (-e Makefile) mv -f Makefile Makefile~
    183184cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1
    184 cat tmp.1       | sed "s|@BINDIR@|$bindir|" > Makefile
    185 rm -f tmp.1
     185cat tmp.1       | sed "s|@HOST2@|$hostname2|"  > tmp.2
     186cat tmp.2       | sed "s|@BINDIR@|$bindir|" > Makefile
     187rm -f tmp.2
    186188
    187189# convert raw/site.php.in to raw/site.php
     
    193195cat tmp.1           | sed "s|@DBI@|$DBI|"        > tmp.2
    194196cat tmp.2           | sed "s|@HOST@|$hostname|"  > tmp.1
    195 awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 > raw/site.php
     197cat tmp.1           | sed "s|@HOST2@|$hostname2|"  > tmp.2
     198awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.2 > raw/site.php
    196199cat config.dat >> raw/site.php
    197 awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 >> raw/site.php
     200awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.2 >> raw/site.php
    198201
    199202rm -f tmp.1 tmp.2
Note: See TracChangeset for help on using the changeset viewer.