IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2012, 8:50:00 PM (14 years ago)
Author:
eugene
Message:

add -bootstrap current option (re-install in current PSCONFDIR)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psconfig/psbuild

    r34021 r34031  
    395395
    396396sub bootstrap {
    397 
    398     if (@ARGV != 2) { die "USAGE: psbuild -bootstrap (install_dir)\n"; }
     397    if (@ARGV != 2) { die "USAGE: psbuild -bootstrap (install_dir | current)\n"; }
    399398    $psconfdir = $ARGV[1];
     399
     400    if ($psconfdir eq "current") {
     401        $psconfdir = $ENV{'PSCONFDIR'};
     402        if (! $psconfdir) { die "no env variable PSCONFDIR found for psbuild -bootstrap current\n"; }
     403    }
    400404    die "Target directory must be absolute, not relative: $psconfdir\n" unless $psconfdir =~ m|^/|;
    401405
Note: See TracChangeset for help on using the changeset viewer.