Index: branches/eam_branches/ipp-20130307/dvodist/Makefile.in
===================================================================
--- branches/eam_branches/ipp-20130307/dvodist/Makefile.in	(revision 35289)
+++ branches/eam_branches/ipp-20130307/dvodist/Makefile.in	(revision 35290)
@@ -17,5 +17,5 @@
 SRC-DVODIST = dvodist
 SRC-IPPDATA = ippdata
-TGT-DVODIST = @HTDOCS@/dvodist
+TGT-DVODIST = @HTDOCS@/www-root
 TGT-IPPDATA = @HTDOCS@/ippdata
 
@@ -68,4 +68,5 @@
 include $(SRC-DVODIST)/3pi.20120525/Makefile
 include $(SRC-DVODIST)/3pi.20120606/Makefile
+include $(SRC-DVODIST)/3pi.20130227/Makefile
 include $(SRC-DVODIST)/allsky.tables.20120513/Makefile
 include $(SRC-DVODIST)/allsky.tables.20120602/Makefile
@@ -76,4 +77,5 @@
 $(DIST-3pi-20120525) \
 $(DIST-3pi-20120606) \
+$(DIST-3pi-20130227) \
 $(DIST-allsky-tables-20120513) \
 $(DIST-allsky-tables-20120602) \
Index: branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120525.sh
===================================================================
--- branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120525.sh	(revision 35289)
+++ branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120525.sh	(revision 35290)
@@ -7,5 +7,5 @@
 set catroot = /data/ipp064.0/eugene/3pi.20111229/catdir.20120525
 
-set catdir = 3pi.20120525
+set catdir = 3pi.20120525.new
 set cattgt = $wwwroot/$catdir
 
Index: branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120606.sh
===================================================================
--- branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120606.sh	(revision 35289)
+++ branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20120606.sh	(revision 35290)
@@ -7,5 +7,5 @@
 set catroot = /data/ipp064.0/eugene/3pi.20111229/catdir.20120606
 
-set catdir = 3pi.20120606
+set catdir = 3pi.20120606.new
 set cattgt = $wwwroot/$catdir
 
Index: branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20130227.sh
===================================================================
--- branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20130227.sh	(revision 35290)
+++ branches/eam_branches/ipp-20130307/dvodist/scripts/mkdist.20130227.sh	(revision 35290)
@@ -0,0 +1,35 @@
+#!/bin/csh -f
+
+# create the links needed to expose a specific catalog to the distribution server
+
+# general locations
+set wwwroot = /data/ippc17.0/www/dvodist/www-root
+set catroot = /data/ipp064.0/eugene/3pi.20111229/catdir.20130227
+
+set catdir = 3pi.20130227
+set cattgt = $wwwroot/$catdir
+
+set nlist = (n0000 n0730 n1500 n2230 n3000 n3730 n4500 n5230 n6000 n6730 n7500 n8230)
+set slist = (s0000 s0730 s1500 s2230 s3000 s3730 s4500 s5230 s6000 s6730 s7500 s8230)
+
+# top-level files
+mkdir -p $cattgt
+foreach file (HostTable.dat Images.dat Photcodes.dat SkyTable.fits flatcorr.fits)
+  ln -s $catroot/$file $cattgt
+end
+
+# make DEC directories
+foreach dir ($nlist $slist)
+  mkdir $cattgt/$dir
+end
+
+# link all files from all hostdirs into all DEC dirs
+foreach hostdir (`grep -v \# $cattgt/HostTable.dat | awk '{print $3}'`)
+  echo $hostdir
+  foreach dir ($nlist $slist)
+    ln -s $hostdir/$dir/*.cpt $cattgt/$dir
+    ln -s $hostdir/$dir/*.cpm $cattgt/$dir
+    ln -s $hostdir/$dir/*.cps $cattgt/$dir
+    ln -s $hostdir/$dir/*.cpn $cattgt/$dir
+  end
+end
Index: branches/eam_branches/ipp-20130307/dvodist/scripts/mkindex.dvo.pl
===================================================================
--- branches/eam_branches/ipp-20130307/dvodist/scripts/mkindex.dvo.pl	(revision 35289)
+++ branches/eam_branches/ipp-20130307/dvodist/scripts/mkindex.dvo.pl	(revision 35290)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
 
-if (@ARGV != 2) { die "USAGE: mkindex.dvo.pl (catdir) (catdir_name)\n" ;}
+if (@ARGV != 3) { die "USAGE: mkindex.dvo.pl (catdir) (catdir_name) (ippdata | dvodist)\n" ;}
 
 @nlist = ("n0000", "n0730", "n1500", "n2230", "n3000", "n3730", "n4500", "n5230", "n6000", "n6730", "n7500", "n8230");
@@ -8,4 +8,5 @@
 $catdir = &basename($ARGV[0]);
 $catdir_name = $ARGV[1];
+$target_name = $ARGV[2];
 # "Synthetic Photometry Catdir";
 
@@ -34,5 +35,9 @@
 
     # XXX ippdata.page.php vs dvodist.page.php
-    print FILE "<?php include \"\@HTDOCS\@/www-util/ippdata.page.php\"\; ?>\n\n";
+    if ($target_name eq "ippdata") {
+	print FILE "<?php include \"\@HTDOCS\@/www-util/ippdata.page.php\"\; ?>\n\n";
+    } else {
+	print FILE "<?php include \"\@HTDOCS\@/www-util/dvodist.page.php\"\; ?>\n\n";
+    }
 
     # CATDIR Title supplied on cmd line
