Index: branches/eam_branches/ipp-20120905/dvodist/src/fixdirlist
===================================================================
--- branches/eam_branches/ipp-20120905/dvodist/src/fixdirlist	(revision 34554)
+++ branches/eam_branches/ipp-20120905/dvodist/src/fixdirlist	(revision 34554)
@@ -0,0 +1,26 @@
+#!/bin/csh -f
+
+if ($#argv != 3) then
+  echo "USAGE: fixdirlist (outdir) (root)"
+  exit 2
+endif
+
+set outdir = $1
+set root = $2
+set name = $3
+
+echo '<?php include "@HTDOCS@/www-util/ipp.page.php"; ?>' > $outdir/$root/index.mkd
+awk '{printf "@ %s\n", $0}' index.txt >> $outdir/$root/index.mkd
+
+echo "$name = \" > $outdir/$root/Makefile
+
+foreach f (*)
+  if ( ! -d $f ) continue
+  echo $f
+  mkdir -p $outdir/$root/$f
+  echo '<?php include "@HTDOCS@/www-util/ipp.page.php"; ?>' > $outdir/$root/$f/index.mkd
+  awk '{printf "@ %s\n", $0}' $f/index.txt >> $outdir/$root/$f/index.mkd
+  echo '$(TGT-ROOT)'/$root/$f/index.php "\" >> $outdir/$root/Makefile
+end
+
+echo '$(TGT-ROOT)'/$root/index.php >> $outdir/$root/Makefile
