Changeset 16092 for trunk/psconfig/psbuild
- Timestamp:
- Jan 15, 2008, 6:01:17 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/psbuild (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/psbuild
r15222 r16092 8 8 $rebuild = 0; 9 9 $optimize = 0; 10 $developer = 0; 10 11 $start = ""; 11 12 $stop = ""; … … 32 33 if ($ARGV[0] eq "-optimize") { 33 34 $optimize = 1; 35 shift; next; 36 } 37 if ($ARGV[0] eq "-dev") { 38 $developer = 1; 34 39 shift; next; 35 40 } … … 155 160 $start = ""; 156 161 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; } 158 164 if ($do_build eq "N") { next; } 159 165 … … 192 198 if ($rebuild && $clean) { 193 199 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"; } 195 201 } 196 202 $rebuild_this = $rebuild; … … 201 207 # run autogen 202 208 $skip_configure = 0; 203 if ($ rebuild_this && ! -e "configure" && -e "autogen.sh") {209 if ($developer && $rebuild_this && ! -e "configure" && -e "autogen.sh") { 204 210 $skip_configure = 1; 205 211 vsystem ("$psautogen $psopts"); … … 296 302 print STDERR " : -version (version) : specify alternate psconfig installation version\n"; 297 303 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"; 299 305 print STDERR " : -optimize : set flags for optimized code\n"; 300 306 print STDERR " : -only (module) : only build the specified module\n"; 301 307 print STDERR " : -start (module) : begin build at specified module\n"; 302 308 print STDERR " : -stop (module) : stop build after specified module\n\n"; 309 print STDERR " : -developer : build modules not distributed in tarball\n\n"; 303 310 print STDERR " : psbuild -list : list the available distributions\n"; 304 311 print STDERR " : psbuild -h : this help listing\n";
Note:
See TracChangeset
for help on using the changeset viewer.
