Changeset 12132 for trunk/psconfig/mkbuild
- Timestamp:
- Mar 1, 2007, 12:09:41 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/mkbuild (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/mkbuild
r11953 r12132 9 9 $start = ""; 10 10 $stop = ""; 11 $verbose = 0; 11 12 12 13 @tARGV = (); … … 15 16 $version = $ARGV[1]; 16 17 shift; shift; next; 18 } 19 if ($ARGV[0] eq "-verbose") { 20 $verbose = 1; 21 shift; next; 17 22 } 18 23 if ($ARGV[0] eq "-clean") { … … 163 168 sub vsystem { 164 169 print STDERR "@_\n"; 165 $status = system ("@_");166 $status;170 #$status = system ("@_"); 171 #$status; 167 172 } 168 173 169 174 sub 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 } 171 181 exit 2; 172 182 } … … 200 210 if (($do_update ne "Y") && ($do_update ne "N")) { die "invalid tag option $do_update\n"; } 201 211 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"; } 204 214 205 215 push @mode, $mode; … … 215 225 216 226 sub 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"; 224 239 exit 2; 225 240 }
Note:
See TracChangeset
for help on using the changeset viewer.
