#!/usr/bin/csh -f # the persons in question are $1 and $2 # the question directory is $3 echo " Creating anchor for $3..." if ($2 != "x") then set candidatehtml = "candidates/$1_$2.html" else set candidatehtml = "candidates/$1.html" endif set found = 0 if (-f "$3/$1.txt") then echo "

" `cat $3/question` ":

" >> $candidatehtml else if (-f "$3/$2.txt") then echo "

" `cat $3/question` ":

" >> $candidatehtml else if (-f "$3/$1_$2.txt") then echo "

" `cat $3/question` ":

" >> $candidatehtml else if (-f "$3/$2_$1.txt") then echo "

" `cat $3/question` ":

" >> $candidatehtml endif if (-f "$3/$1.txt") then echo "   " `cat candidates/$1.txt` ":

" >> $candidatehtml echo "

" >> $candidatehtml set found = 1 endif if (-f "$3/$2.txt") then echo "   " `cat candidates/$2.txt` ":

" >> $candidatehtml echo "

" >> $candidatehtml set found = 1 endif if (-f "$3/$1_$2.txt") then echo "   " `cat candidates/$1.txt` " and " `cat candidates/$2.txt` ":

" >> $candidatehtml echo "

" >> $candidatehtml set found = 1 endif if (-f "$3/$2_$1.txt") then echo "   " `cat candidates/$1.txt` " and " `cat candidates/$2.txt` ":

" >> $candidatehtml echo "

" >> $candidatehtml set found = 1 endif if ($found == 1) then echo "Back to the
top.

" >> $candidatehtml echo "


" >> $candidatehtml endif