Index: trunk/psconfig/mkbuild
===================================================================
--- trunk/psconfig/mkbuild	(revision 11953)
+++ trunk/psconfig/mkbuild	(revision 12132)
@@ -9,4 +9,5 @@
 $start = "";
 $stop = "";
+$verbose = 0;
 
 @tARGV = ();
@@ -15,4 +16,8 @@
 	$version = $ARGV[1];
         shift; shift; next;
+    }
+    if ($ARGV[0] eq "-verbose") {
+	$verbose = 1;
+        shift; next;
     }
     if ($ARGV[0] eq "-clean") {
@@ -163,10 +168,15 @@
 sub vsystem {
     print STDERR "@_\n";
-    $status = system ("@_");
-    $status;
+    #$status = system ("@_");
+    #$status;
 }
 
 sub list_distributions {
-    vsystem ("ls $tagsets/*.dst");
+    @list = <$tagsets/*.dst>;
+    foreach $line (@list) {
+	chomp $line;
+	($dist) = $line =~ m|$tagsets/(\S*).dst|;
+	print STDERR "$dist\n";
+    }
     exit 2;
 }
@@ -200,6 +210,6 @@
 	if (($do_update ne "Y") && ($do_update ne "N")) { die "invalid tag option $do_update\n"; }
 	
-	print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update ";
-	print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n"; 
+	if ($verbose) { print "tag: $do_tag, build: $do_build, package: $do_package, update: $do_update "; }
+	if ($verbose) { print "module: $cvsname, branchtag: $branchtag, branchver: $branchver \n"; }
 
 	push @mode, $mode;
@@ -215,11 +225,16 @@
 
 sub usage {
-    print STDERR "USAGE: mkdist -list\n";
-    print STDERR "     : list valid distributions \n\n";
-    print STDERR "USAGE: mkdist (distribution) [-cvs]\n";
-    print STDERR "     : make a distribution tarball\n";
-    print STDERR "     : -cvs  : only check out the cvs tree, don't make a tarball\n\n";
-    print STDERR "USAGE: mkdist -diff (group) (version)\n";
-    print STDERR "     : show the difference between the distribution and current tree\n\n";
+    print STDERR "USAGE: psbuild [options] (distribution)\n";
+    print STDERR "     : -version (version) : specify alternate psconfig installation version\n";
+    print STDERR "     : -clean             : clean the source directories before building\n";
+    print STDERR "     : -rebuild           : run 'autogen' (C code)\n";
+    print STDERR "     : -optimize          : set flags for optimized code\n";
+    print STDERR "     : -only (module)     : only build the specified module\n";
+    print STDERR "     : -start (module)    : begin build at specified module\n";
+    print STDERR "     : -stop (module)     : stop build after specified module\n\n";
+    print STDERR "     : psbuild -list      : list the available distributions\n";
+    print STDERR "     : psbuild -h         : this help listing\n";
+    print STDERR "     : psbuild -help      : this help listing\n";
+    print STDERR "     : psbuild --help     : this help listing\n";
     exit 2;
 }
