#!/bin/csh -f
setenv INDEXDIR `pwd`
cat forindexes.in | awk '{print($1,$1)}' | rev | sed s/'\/'/' '/ | rev | \
awk '{print("ln -s /mnt/pmirror2/molecules/pdb/"$1".pdb html/"$1"/ ; ln -s /mnt/pmirror2/molecules/sdf/"$1" html/"$1"/"$3".sdf ; source makeHtmlIndex html/"$1" ; echo \""$3"
\" >> makeIndices.html")}' | csh -f