Changeset 30601
- Timestamp:
- Feb 13, 2011, 11:07:28 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/psbuild (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/psbuild
r29559 r30601 13 13 $operations = 0; 14 14 $start = ""; 15 $start_after = ""; 15 16 $stop = ""; 16 17 $verbose = 0; … … 85 86 } 86 87 if ($ARGV[0] eq "-only") { 88 if ($start || $stop || $start_after) { die "do not mix -only (-start, -stop) or (-after, -stop)\n"; } 87 89 $start = $ARGV[1]; 88 90 $stop = $ARGV[1]; … … 90 92 } 91 93 if ($ARGV[0] eq "-start") { 94 if ($start || $start_after) { die "do not mix -only (-start, -stop) or (-after, -stop)\n"; } 92 95 $start = $ARGV[1]; 93 96 shift; shift; next; 94 97 } 98 if ($ARGV[0] eq "-after") { 99 if ($start || $start_after) { die "do not mix -only (-start, -stop) or (-after, -stop)\n"; } 100 $start_after = $ARGV[1]; 101 $start = "INVALID_VALUE"; # need to have a value to skip earlier entries 102 shift; shift; next; 103 } 95 104 if ($ARGV[0] eq "-stop") { 105 if ($stop) { die "do not mix -only (-start, -stop) or (-after, -stop)\n"; } 96 106 $stop = $ARGV[1]; 97 107 shift; shift; next; … … 258 268 $stop_now = 0; 259 269 for ($i = 0; !$stop_now && ($i < @module); $i++) { 260 if (($stop ne "") && ($stop eq $module[$i])) { $stop_now = 1; } 261 if (($start ne "") && ($start ne $module[$i])) { next; } 270 if ($stop && ($stop eq $module[$i])) { $stop_now = 1; } 271 if ($start_after && ($start_after eq $module[$i])) { $start = $module[$i+1]; next; } 272 if ($start && ($start ne $module[$i])) { next; } 262 273 $start = ""; 263 274 … … 348 359 chdir $homedir; 349 360 } 361 if ($start) { if ($start_after) { $start = $start_after; } &failure($start, "unknown -start or -after module $start\n"); } 362 if ($stop && !$stop_now) { &failure($start, "unknown -stop module $stop\n"); } 363 350 364 print "\033]0; ** psbuild: finished ** \007"; 351 365 exit 0;
Note:
See TracChangeset
for help on using the changeset viewer.
