IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2007, 12:09:41 AM (19 years ago)
Author:
eugene
Message:

cleanup up build scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/mkbuild

    r11953 r12132  
    99$start = "";
    1010$stop = "";
     11$verbose = 0;
    1112
    1213@tARGV = ();
     
    1516        $version = $ARGV[1];
    1617        shift; shift; next;
     18    }
     19    if ($ARGV[0] eq "-verbose") {
     20        $verbose = 1;
     21        shift; next;
    1722    }
    1823    if ($ARGV[0] eq "-clean") {
     
    163168sub vsystem {
    164169    print STDERR "@_\n";
    165     $status = system ("@_");
    166     $status;
     170    #$status = system ("@_");
     171    #$status;
    167172}
    168173
    169174sub list_distributions {
    170     vsystem ("ls $tagsets/*.dst");
     175    @list = <$tagsets/*.dst>;
     176    foreach $line (@list) {
     177        chomp $line;
     178        ($dist) = $line =~ m|$tagsets/(\S*).dst|;
     179        print STDERR "$dist\n";
     180    }
    171181    exit 2;
    172182}
     
    200210        if (($do_update ne "Y") && ($do_update ne "N")) { die "invalid tag option $do_update\n"; }
    201211       
    202         print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update ";
    203         print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n";
     212        if ($verbose) { print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update "; }
     213        if ($verbose) { print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n"; }
    204214
    205215        push @mode, $mode;
     
    215225
    216226sub usage {
    217     print STDERR "USAGE: mkdist -list\n";
    218     print STDERR "     : list valid distributions \n\n";
    219     print STDERR "USAGE: mkdist (distribution) [-cvs]\n";
    220     print STDERR "     : make a distribution tarball\n";
    221     print STDERR "     : -cvs  : only check out the cvs tree, don't make a tarball\n\n";
    222     print STDERR "USAGE: mkdist -diff (group) (version)\n";
    223     print STDERR "     : show the difference between the distribution and current tree\n\n";
     227    print STDERR "USAGE: psbuild [options] (distribution)\n";
     228    print STDERR "     : -version (version) : specify alternate psconfig installation version\n";
     229    print STDERR "     : -clean             : clean the source directories before building\n";
     230    print STDERR "     : -rebuild           : run 'autogen' (C code)\n";
     231    print STDERR "     : -optimize          : set flags for optimized code\n";
     232    print STDERR "     : -only (module)     : only build the specified module\n";
     233    print STDERR "     : -start (module)    : begin build at specified module\n";
     234    print STDERR "     : -stop (module)     : stop build after specified module\n\n";
     235    print STDERR "     : psbuild -list      : list the available distributions\n";
     236    print STDERR "     : psbuild -h         : this help listing\n";
     237    print STDERR "     : psbuild -help      : this help listing\n";
     238    print STDERR "     : psbuild --help     : this help listing\n";
    224239    exit 2;
    225240}
Note: See TracChangeset for help on using the changeset viewer.