#!/bin/sh
+# Copyright (c) 2010 Index Data, http://www.indexdata.com
#
-# wrapper for irspy.pl
+# irspy-update.sh - wrapper for irspy.pl
#
# run irspy with a smaller set of records in a loop to avoid out-of-memory
#
+# for a fast update, run this:
+# $ env irspy_test=Quick ./irspy-update.sh
home=/usr/local/src/git
cd $home/irspy/bin || exit 2
logdir=../log
lockfile=$logdir/irspy-update.lock
+statusfile=$logdir/irspy-last-update.log
+
+# run a full update by default, use Quick for a fast update
: ${irspy_test=Main}
mkdir -p $logdir || exit2
done
rm -f $lockfile
+date > $statusfile