IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28067


Ignore:
Timestamp:
May 21, 2010, 12:22:56 PM (16 years ago)
Author:
eugene
Message:

add -magic and -ops flags to psbuild to make life easier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r24670 r28067  
    1010$profile = 0;
    1111$developer = 0;
     12$magic = 0;
     13$operations = 0;
    1214$start = "";
    1315$stop = "";
     
    5961        shift; next;
    6062    }
     63    if ($ARGV[0] eq "-magic") {
     64        $magic = 1;
     65        shift; next;
     66    }
    6167    if ($ARGV[0] eq "-optimize") {
    6268        $optimize = 1;
     
    6975    if ($ARGV[0] eq "-dev") {
    7076        $developer = 1;
     77        shift; next;
     78    }
     79    # basic settings for the operations installation
     80    if ($ARGV[0] eq "-ops") {
     81        $developer = 1;
     82        $optimize = 1;
     83        $magic = 1;
    7184        shift; next;
    7285    }
     
    167180
    168181sub build_distribution {
     182
     183    # the operations system needs to first update the magic software
     184    if ($magic) {
     185        $homedir = `pwd`; chomp $homedir;
     186        chdir "../magic";
     187
     188        if (! -d magic || ! -d ssa-core-cpp || ! -d qt-everywhere-opensource-src-4.6.1) {
     189            $status = vsystem ("make update");
     190            if ($status) { die "failed to untar magic directories"; }
     191        } else {
     192            print "magic directories exist; run make update manually if needed\n";
     193        }
     194        chdir $homedir;
     195    }
    169196
    170197    # use psconfig.csh to set needed build aliases
Note: See TracChangeset for help on using the changeset viewer.