document fast irspy update
[irspy-moved-to-github.git] / bin / irspy-update.sh
index 5113d50..727a265 100755 (executable)
@@ -4,13 +4,19 @@
 #
 # 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=../tmp
-lockfile=../tmp/irspy-update.lock
+logdir=../log
+lockfile=$logdir/irspy-update.lock
+
+# run a full update by default, use Quick for a fast update
 : ${irspy_test=Main}
 
+mkdir -p $logdir || exit2
+
 if [ -f $lockfile ]; then
     pid=`cat $lockfile`
     if kill -0 $pid 2>/dev/null; then