#!/bin/bash

SUBDIR='seamonkey-crash-analysis-detailed'
DATE=`date +%Y%m%d`

ALLFILE="$SUBDIR/$DATE-all"

ALLURL="http://ftp.mozilla.org/pub/data/crash-data/seamonkey-crash-analysis-detailed.txt"

if [ -e $ALLFILE ]; then
   echo "One of the target files already exists.  Exiting without overwriting."
   exit 1
fi

lynx -source $ALLURL > $ALLFILE

./process-cad.pl --db talkback.db --date $DATE-all
