Index: branches/ipp-magic-v0/psconfig/psbuild
===================================================================
--- branches/ipp-magic-v0/psconfig/psbuild	(revision 21497)
+++ branches/ipp-magic-v0/psconfig/psbuild	(revision 21498)
@@ -1,13 +1,20 @@
 #!/usr/bin/env perl
 
-# Get the CVS tag
+$tagsets = "tagsets";
+if (!-d $tagsets || !-r $tagsets || !-x $tagsets) { die "missing the directory of distribution tables: $tagsets\n"; }
+
+# Get the default CVS tag
 $cvsNameString= '$Name: not supported by cvs2svn $';
-if ( $cvsNameString =~ /\$Name: not supported by cvs2svn $/ ) {
+if ( $cvsNameString =~ /\$[N]ame: (.+) $/ ) {
     $cvsTag = $1;
 } 
-else { die "ERROR: cannot parse CVS tag string\n"; }
-
-$tagsets = "tagsets";
-if (!-d $tagsets || !-r $tagsets || !-x $tagsets) { die "missing the directory of distribution tables: $tagsets\n"; }
+else { 
+    @list = <$tagsets/*.dist>;
+
+    if ( $list[-1] =~ /$tagsets\/(.+)\.dist/ ) {
+        $cvsTag = $1;
+    }
+    else { die "ERROR: unable to determine version tag\n"; }
+}
 
 $version = "";
