#!/bin/csh -f if ( $1 != '' ) then #goto index echo getting images for $1 grep -i "${1}" nameslist | tr / ' ' | awk '{print("\\ls "$1"/"$2"/"$3"/"$3".png")}' | csh -f > ${1}pngs setenv pngs `cat ${1}pngs | head -1` echo $pngs if ( ${pngs} == '' ) then echo ${1} not found exit else echo -n ${1}pngs:" " && wc -l ${1}pngs endif echo "${1} Molecules@GNU-Darwin.org Structural Archive and Gallery" > ${1}-more.html echo "

${1} Molecules Structural Archive and Gallery

" >> ${1}-more.html cat ${1}pngs | tr / ' ' | awk '{print("echo -n . > /dev/tty && echo \"
\" && cat "$1"/"$2"/"$3"/names && echo \"

pdb file: "$3".pdb
sdf file: "$3".sdf
directory: "$3"

\"")}' | csh -f >> ${1}-more.html echo echo making MOD and RSS ~/grabHtmlHeader ${1}-more.html ; ~/insertSidebar2 ${1}-more.html mv ${1}-more.html mod && rm ${1}* && cd mod && ~/webindex.pl && ~/grabHtmlHeader index.html && \ ~/insertSidebar2 index.html && source ../makeRSS && cd ../ else echo argument required endif