#!/bin/bash

# if the file workbook/20090101.log exists, open it, otherwise create it with a timestamp and open it

file=`date +workbook/%Y%m%d.log`

if [ ! -e "$file" ]
then
    date +%Y-%m-%d >> $file
    echo "----------" >> $file
fi

if [ -e "Makefile" ]
then
    scite Makefile $file
else
    scite $file
fi
# EOF

