IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16288


Ignore:
Timestamp:
Feb 3, 2008, 11:50:51 AM (18 years ago)
Author:
eugene
Message:

check for psconfig.csh and build if we can (PSCONFDIR defined)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r16128 r16288  
    9797}
    9898
     99# generate new psconfig.csh if needed
     100if (! -e psconfig.csh) {
     101    $psconfdir = $ENV{'PSCONFDIR'};
     102    if ($psconfdir eq "") { die "PSCONFDIR not found, run psbuild -bootstrap and follow instructions\n"; }
     103    vsystem ("cat psconfig.csh.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.csh");
     104    vsystem ("cat psconfig.bash.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.bash");
     105}
     106
    99107&load_distfile ();
    100108
     
    112120    if ("$version" eq "") {
    113121        $version = "default";
     122    }
     123
     124    if (! -e psconfig.csh) {
     125        $psconfdir = $ENV{'PSCONFDIR'};
     126        if ($psconfdir eq "") { die "PSCONFDIR not found, run psbuild -bootstrap and follow instructions\n"; }
     127        vsystem ("cat psconfig.csh.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.csh");
     128        vsystem ("cat psconfig.bash.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.bash");
    114129    }
    115130
Note: See TracChangeset for help on using the changeset viewer.