IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2008, 6:01:17 PM (19 years ago)
Author:
eugene
Message:

fixing various build issues: where to get mysql, options passed to extlibs, name cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r15222 r16092  
    88$rebuild = 0;
    99$optimize = 0;
     10$developer = 0;
    1011$start = "";
    1112$stop = "";
     
    3233    if ($ARGV[0] eq "-optimize") {
    3334        $optimize = 1;
     35        shift; next;
     36    }
     37    if ($ARGV[0] eq "-dev") {
     38        $developer = 1;
    3439        shift; next;
    3540    }
     
    155160        $start = "";
    156161
    157         ($do_tag, $do_build, $do_package, $do_update) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)|;
     162        ($do_tag, $do_build, $do_package, $do_update, $dev_build) = $mode[$i] =~ m|(\S)(\S)(\S)(\S)(\S)|;
     163        if ($developer) { $do_build = $dev_build; }
    158164        if ($do_build eq "N") { next; }
    159165
     
    192198        if ($rebuild && $clean) {
    193199            if (-e "configure") { unlink "Makefile"; }
    194             if (-e "configure.ac" && -e "autogen.sh") { unlink "configure"; }
     200            if ($developer && -e "configure.ac" && -e "autogen.sh") { unlink "configure"; }
    195201        }
    196202        $rebuild_this = $rebuild;
     
    201207        #  run autogen
    202208        $skip_configure = 0;
    203         if ($rebuild_this && ! -e "configure" && -e "autogen.sh") {
     209        if ($developer && $rebuild_this && ! -e "configure" && -e "autogen.sh") {
    204210            $skip_configure = 1;
    205211            vsystem ("$psautogen $psopts");
     
    296302    print STDERR "     : -version (version) : specify alternate psconfig installation version\n";
    297303    print STDERR "     : -clean             : clean the source directories before building\n";
    298     print STDERR "     : -rebuild           : run 'autogen' (C code)\n";
     304    print STDERR "     : -rebuild           : run 'configure (and autogen for developer)' (C code)\n";
    299305    print STDERR "     : -optimize          : set flags for optimized code\n";
    300306    print STDERR "     : -only (module)     : only build the specified module\n";
    301307    print STDERR "     : -start (module)    : begin build at specified module\n";
    302308    print STDERR "     : -stop (module)     : stop build after specified module\n\n";
     309    print STDERR "     : -developer         : build modules not distributed in tarball\n\n";
    303310    print STDERR "     : psbuild -list      : list the available distributions\n";
    304311    print STDERR "     : psbuild -h         : this help listing\n";
Note: See TracChangeset for help on using the changeset viewer.