#!/bin/tcsh
cd /tmp
rm index.tmp.orrd
sed -e"s/DATETOKEN/$1/g" -e"s/LECTURETOKEN/$2/g" -e"s/SPEAKERTOKEN/$3/g" < ~orrd/public_html/linux-club/db/index.1 > index.tmp.orrd
cat ~orrd/public_html/linux-club/db/lectures/future/* >>! index.tmp.orrd
cat ~orrd/public_html/linux-club/db/index.2 >>! index.tmp.orrd
mv ~orrd/public_html/haifux/index.html ~orrd/public_html/haifux/index.html.1
cp index.tmp.orrd ~orrd/public_html/haifux/index.html
rm index.tmp.orrd
cd ~orrd/public_html/haifux
chgrp haifux index.html
chmod 664 index.html
