Index: trunk/dvodist/scripts/mkdist.pv0.3pi.20140621.sh
===================================================================
--- trunk/dvodist/scripts/mkdist.20140621.sh	(revision 37805)
+++ trunk/dvodist/scripts/mkdist.pv0.3pi.20140621.sh	(revision 39551)
@@ -4,8 +4,8 @@
 
 # general locations
-set wwwroot = /data/ippc11.0/www/dvodist/www-root
-set catroot = /data/ipp064.0/eugene/3pi.20111229/catdir.20140621
+set wwwroot = /data/ippc32.0/www/dvodist/www-root
+set catroot = /data/ipp064.0/eugene/3pi.pv0.20140621
 
-set catdir = 3pi.20140621
+set catdir = 3pi.pv0.20140621
 set cattgt = $wwwroot/$catdir
 
@@ -13,14 +13,18 @@
 set slist = (s0000 s0730 s1500 s2230 s3000 s3730 s4500 s5230 s6000 s6730 s7500 s8230)
 
+set extlist = (cpt cpm cps cpn)
+
 # top-level files
-mkdir -p $cattgt
-foreach file (HostTable.dat Images.dat Photcodes.dat SkyTable.fits flatcorr.fits)
-  ln -sf $catroot/$file $cattgt
-end
-
-# make DEC directories
-foreach dir ($nlist $slist)
-  mkdir -p $cattgt/$dir
-end
+if (1) then
+  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
+endif
 
 # link all files from all hostdirs into all DEC dirs
@@ -28,8 +32,9 @@
   echo $hostdir
   foreach dir ($nlist $slist)
-    ln -sf $hostdir/$dir/*.cpt $cattgt/$dir
-    ln -sf $hostdir/$dir/*.cpm $cattgt/$dir
-    ln -sf $hostdir/$dir/*.cps $cattgt/$dir
-    ln -sf $hostdir/$dir/*.cpn $cattgt/$dir
+    echo $hostdir : $dir
+    foreach ext ($extlist)
+      echo $hostdir : $dir : $ext
+      ln -sf $hostdir/$dir/*.$ext $cattgt/$dir
+    end
   end
 end
