Index: unk/psconfig/cpan.setup.sh
===================================================================
--- /trunk/psconfig/cpan.setup.sh	(revision 12131)
+++ 	(revision )
@@ -1,33 +1,0 @@
-#!/bin/csh -f 
-
-if ($#argv != 1) then
-  echo "USAGE: cpan.setup.sh (prefix)"
-  exit 2
-endif
-
-set prefix = $1
-set cpan = ~/.cpan/CPAN
-
-echo "WARNING: this operation will over-write your CPAN user settings"
-echo "if you want to continue, enter YES"
-set answer = $<
-if ("$answer" != "YES") then
-  echo "skipping CPAN setup"
-  exit 2
-endif
-
-# define the CPAN install directory
-mkdir -p $cpan
-mkdir -p ~/.cpan/Bundle
-
-# XXX create dummy Config.pm?
-# XXX running cpan on my box wiped out the results below
-# rm -f $cpan/MyConfig.pm
-
-echo '\$CPAN::Config = {' >> $cpan/MyConfig.pm
-echo "  makepl_arg => q[PREFIX=$prefix]," >> $cpan/MyConfig.pm
-echo "  mbuildpl_arg => q[--install_base $prefix]," >> $cpan/MyConfig.pm
-echo "};" >> $cpan/MyConfig.pm
-echo "1;" >> $cpan/MyConfig.pm
-echo "__END__" >> $cpan/MyConfig.pm
-
Index: unk/psconfig/getperlmods
===================================================================
--- /trunk/psconfig/getperlmods	(revision 12131)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#!/bin/csh -f
-
-grep use `find .. -name "*.pm"` |\
-     sed "s|::|@@|g" |\
-     awk -F: '{print $2}' |\
-     sed "s|@@|::|g" |\
-     awk -F\; '{print $1}' |\
-     grep -v "\#" |\
-     sed "s|qw(|@|" |\
-     awk -F@ '{print $1}' |\
-     sort | uniq |\
-     grep "^use" > perl.modules.list
Index: /trunk/psconfig/mkbuild
===================================================================
--- /trunk/psconfig/mkbuild	(revision 12131)
+++ /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;
 }
Index: /trunk/psconfig/mkdist
===================================================================
--- /trunk/psconfig/mkdist	(revision 12131)
+++ /trunk/psconfig/mkdist	(revision 12132)
@@ -26,8 +26,4 @@
     if ($ARGV[0] eq "-devtag") {
 	$setdevtag = 1;
-        shift; next;
-    }
-    if ($ARGV[0] eq "-deltag") {
-	$deltag = 1;
         shift; next;
     }
@@ -74,9 +70,6 @@
 	print STDERR "--- $cvsname[$i] ---\n";
 	if ($cvsname[$i] eq "base") { next; }
-	if ($tag[$i] eq "") {
-	    &vsystem ("cvs -q rdiff -s -r HEAD $cvsname[$i]");
-	} else {
-	    &vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
-	}	
+	if ($tag[$i] eq "") { next; }
+	&vsystem ("cvs -q rdiff -s -r $tag[$i] $cvsname[$i]");
 	print STDERR "\n\n";
     }
@@ -139,6 +132,10 @@
 
 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;
 }
@@ -183,11 +180,14 @@
 
 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: mkdist [options] (distribution]\n";
+    print STDERR "     : -tag     : set tags on branch based on distribution table\n";
+    print STDERR "     : -branch  : set branch tags based on distribution table (requires -tag)\n";
+    print STDERR "     : -devtag  : set tags on cvs HEAD based on distribution table (requires -tag)\n\n";
+
+    print STDERR "     : -tarball : make a distribution tarball\n";
+    print STDERR "     : -cvs     : check out tree and leave CVS elements behind\n";
+    print STDERR "     : -module  : perform action only on the specified module\n\n";
+    print STDERR "     : -list    : list valid distributions \n\n";
+    print STDERR "     : -diff    : show the difference between the distribution and current cvs HEAD\n";
     exit 2;
 }
Index: /trunk/psconfig/notes.txt
===================================================================
--- /trunk/psconfig/notes.txt	(revision 12131)
+++ /trunk/psconfig/notes.txt	(revision 12132)
@@ -1,2 +1,15 @@
+
+2007.02.28 : cleanup configuration tools
+
+operations we would like to perform with these tools:
+
+tag CVS tree
+build tarball from tagged tree
+build tarball from head
+build and install software in tree
+check for needed external software
+build and install external software
+
+
 
 YAML : asks for installation confirmation.  
@@ -7,2 +20,14 @@
 Template : asks about XS and additional files.  we can skip both of these
 
+#!/bin/csh -f
+
+grep use `find .. -name "*.pm"` |\
+     sed "s|::|@@|g" |\
+     awk -F: '{print $2}' |\
+     sed "s|@@|::|g" |\
+     awk -F\; '{print $1}' |\
+     grep -v "\#" |\
+     sed "s|qw(|@|" |\
+     awk -F@ '{print $1}' |\
+     sort | uniq |\
+     grep "^use" > perl.modules.list
Index: unk/psconfig/perl.install.sh
===================================================================
--- /trunk/psconfig/perl.install.sh	(revision 12131)
+++ 	(revision )
@@ -1,11 +1,0 @@
-#!/bin/csh -f
-
-foreach f (`cat perl.modules.sh`)
-    echo "$f" | grep "^#"
-    if (! $status) continue
-    perl -MCPAN -e "install $f"
-    if ($status) then
-	echo "ERROR: failed to install $f"
-	exit 2;
-    endif
-end
Index: unk/psconfig/perl.modules.sh
===================================================================
--- /trunk/psconfig/perl.modules.sh	(revision 12131)
+++ 	(revision )
@@ -1,58 +1,0 @@
-Module::Build
-ExtUtils::MakeMaker
-Params::Validate
-DateTime::TimeZone
-DateTime::Locale
-DateTime::Local
-DateTime
-MIME::Base64
-IO::Compress::Base
-Compress::Raw::Zlib
-Class::Factory::Util
-DateTime::Format::Strptime
-Net::Domain::TLD
-Sub::Uplevel
-HTML::Tagset
-Digest
-IO::Compress::Zlib
-version
-Text::Balanced
-DateTime::Format::Builder
-ExtUtils::Manifest
-URI
-Data::Validate::Domain
-est::Exception
-Tree::DAG_Node
-Array::Compare
-HTML::Parser
-Digest::MD5
-Net::FTP
-Compress::Zlib
-Locale::Maketext::Simple
-Parse::RecDescent
-Class::Accessor
-DateTime::Format::ISO8601
-CGI
-Test::Cmd
-Net::HTTPServer
-Digest::MD5::File
-File::Temp
-Data::Validate::URI
-Test::Warn
-YAML
-LWP
-Module::Load
-Params::Check
-Template
-Statistics::Descriptive
-Storable
-IO::String
-Date::Parse
-Digest::SHA1
-DB_File
-File::NFSLock
-Heap
-Module::Load::Conditional
-IPC::Run
-Cache
-IPC::Cmd
Index: unk/psconfig/perl.tarballs
===================================================================
--- /trunk/psconfig/perl.tarballs	(revision 12131)
+++ 	(revision )
@@ -1,57 +1,0 @@
-Array-Compare-1.13.tar.gz
-CGI.pm-3.25.tar.gz
-Cache-2.04.tar.gz
-Class-Accessor-0.30.tar.gz
-Class-Factory-Util-1.6.tar.gz
-Compress-Raw-Zlib-2.003.tar.gz
-Compress-Zlib-2.003.tar.gz
-DB_File-1.814.tar.gz
-Data-Validate-Domain-0.05.tar.gz
-Data-Validate-URI-0.01.tar.gz
-DateTime-0.36.tar.gz
-DateTime-Format-Builder-0.7807.tar.gz
-DateTime-Format-ISO8601-0.0403.tar.gz
-DateTime-Format-Strptime-1.0700.tar.gz
-DateTime-Locale-0.33.tar.gz
-DateTime-TimeZone-0.59.tar.gz
-Digest-1.15.tar.gz
-Digest-MD5-2.36.tar.gz
-Digest-MD5-File-0.05.tar.gz
-Digest-SHA1-2.11.tar.gz
-ExtUtils-MakeMaker-6.31.tar.gz
-ExtUtils-Manifest-1.51.tar.gz
-File-NFSLock-1.20.tar.gz
-File-Temp-0.18.tar.gz
-HTML-Parser-3.56.tar.gz
-HTML-Tagset-3.10.tar.gz
-Heap-0.71.tar.gz
-IO-Compress-Base-2.003.tar.gz
-IO-Compress-Zlib-2.003.tar.gz
-IO-String-1.08.tar.gz
-IPC-Cmd-0.36.tar.gz
-IPC-Run-0.80.tar.gz
-Locale-Maketext-Simple-0.18.tar.gz
-MIME-Base64-3.07.tar.gz
-Module-Build-0.2806.tar.gz
-Module-Load-0.10.tar.gz
-Module-Load-Conditional-0.16.tar.gz
-Net-Domain-TLD-1.65.tar.gz
-Net-HTTPServer-1.1.1.tar.gz
-Params-Check-0.25.tar.gz
-Params-Validate-0.87.tar.gz
-Parse-RecDescent-1.94.tar.gz
-Statistics-Descriptive-2.6.tar.gz
-Storable-2.15.tar.gz
-Sub-Uplevel-0.14.tar.gz
-Template-Toolkit-2.16.tar.gz
-Test-Cmd-1.05.tar.gz
-Test-Exception-0.24.tar.gz
-Test-Warn-0.08.tar.gz
-Text-Balanced-v2.0.0.tar.gz
-Time-Local-1.17.tar.gz
-TimeDate-1.16.tar.gz
-Tree-DAG_Node-1.05.tar.gz
-URI-1.35.tar.gz
-YAML-0.62.tar.gz
-libnet-1.19.tar.gz
-libwww-perl-5.805.tar.gz
Index: /trunk/psconfig/tagsets/ipp-1.0.dst
===================================================================
--- /trunk/psconfig/tagsets/ipp-1.0.dst	(revision 12131)
+++ /trunk/psconfig/tagsets/ipp-1.0.dst	(revision 12132)
@@ -8,46 +8,46 @@
 # |||| 
   NYNY  Ohana
-  NNYN  ohana.base     base-1-5         -0
-  NNYN  libohana       libohana-1-9     -0
-  NNYN  libfits        libfits-1-7      -0
-  NNYN  libautocode    libautocode-1-6  -0
-  NNYN  libdvo         libdvo-1-4       -0
-  NNYN  libkapa        libkapa-1-3      -0
-  NNYN  addstar        addstar-1-8      -0
-  NNYN  delstar        delstar-1-7      -0
-  NNYN  getstar        getstar-1-3      -0
-  NNYN  kapa           kapa-1-7         -0
-  NNYN  kii            kii-1-7          -0
-  NNYN  relphot        relphot-1-5      -0
-  NNYN  uniphot        uniphot-1-5      -0
-  NNYN  opihi.base     opihi-2-9        -0
-  NNYN  mana           mana-1-7         -0
-  NNYN  dvo            dvo-1-0          -0
-  NNYN  pantasks       pantasks-1-0     -0
-  NNYN  pcontrol       pcontrol-1-0     -0
-  NNYN  pclient        pclient-1-0      -0
-  NYYY  psLib          rel-1-0          -0
-  NYYY  psModules      rel-1-0          -0
-  YYYY  psphot         rel-0-8          -0
-  YYYY  psastro        rel-0-8          -0
-  YYYY  ppStats        rel-1-0          -0
-  YYYY  ppImage        rel-1-0          -0
-  YYYY  ppNorm         rel-1-0          -0
-  YYYY  ppMerge        rel-1-0          -0
-  YNYY  pois           rel-0-1          -0
-  YNYY  pswarp         rel-0-1          -0
-  YNYY  ppStac         rel-0-1          -0
-  YYYY  PS-IPP-Metadata-Config rel-1-0  -0
-  YYYY  PS-IPP-Config          rel-1-0  -0
-  YYYY  ippScripts     rel-1-0          -0
-  YYYY  glueforge      rel-1-0          -0
-  YYYY  dbconfig       rel-1-0          -0
-  NYNN  ippdb.src		      
-  YYYY  ippconfig      rel-1-0          -0
-  YYYY  ippTools       rel-1-0          -0
-  YYYY  ippTasks       rel-1-0          -0
-  YYYY  simtest        rel-0-8          -0
-  YNYY  psconfig       rel-1-0          -0
-  YNYY  ippMonitor     rel-1-0          -0
+  NNYN  ohana.base     	base-1-5         -0
+  NNYN  libohana       	libohana-1-9     -0
+  NNYN  libfits        	libfits-1-7      -0
+  NNYN  libautocode    	libautocode-1-6  -0
+  NNYN  libdvo         	libdvo-1-4       -0
+  NNYN  libkapa        	libkapa-1-3      -0
+  NNYN  addstar        	addstar-1-8      -0
+  NNYN  delstar        	delstar-1-7      -0
+  NNYN  getstar        	getstar-1-3      -0
+  NNYN  kapa           	kapa-1-7         -0
+  NNYN  kii            	kii-1-7          -0
+  NNYN  relphot        	relphot-1-5      -0
+  NNYN  uniphot        	uniphot-1-5      -0
+  NNYN  opihi.base     	opihi-2-9        -0
+  NNYN  mana           	mana-1-7         -0
+  NNYN  dvo            	dvo-1-0          -0
+  NNYN  pantasks       	pantasks-1-0     -0
+  NNYN  pcontrol       	pcontrol-1-0     -0
+  NNYN  pclient        	pclient-1-0      -0
+  NYYY  psLib          	rel-1-0          -0
+  NYYY  psModules      	rel-1-0          -0
+  YYYY  psphot         	rel-0-8          -0
+  YYYY  psastro        	rel-0-8          -0
+  YYYY  ppStats        	rel-1-0          -0
+  YYYY  ppImage        	rel-1-0          -0
+  YYYY  ppNorm         	rel-1-0          -0
+  YYYY  ppMerge        	rel-1-0          -0
+  YNYY  pois           	rel-0-1          -0
+  YNYY  pswarp         	rel-0-1          -0
+  YNYY  ppStac         	rel-0-1          -0
+  YYYY  PS-IPP-Metadata-Config rel-1-0   -0
+  YYYY  PS-IPP-Config  	rel-1-0          -0
+  YYYY  ippScripts     	rel-1-0          -0
+  YYYY  glueforge      	rel-1-0          -0
+  YYYY  dbconfig       	rel-1-0          -0
+  NYNN  ippdb.src      			      
+  YYYY  ippconfig      	rel-1-0          -0
+  YYYY  ippTools       	rel-1-0          -0
+  YYYY  ippTasks       	rel-1-0          -0
+  YYYY  simtest        	rel-0-8          -0
+  YNYY  psconfig       	rel-1-0          -0
+  YNYY  ippMonitor     	rel-1-0          -0
 
 # there are externally required perl modules (see README?)
