projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update sample command-line comment for moved rules file.
[irspy-moved-to-github.git]
/
bin
/
irspy-update.sh
diff --git
a/bin/irspy-update.sh
b/bin/irspy-update.sh
index
5113d50
..
7088875
100755
(executable)
--- a/
bin/irspy-update.sh
+++ b/
bin/irspy-update.sh
@@
-1,16
+1,24
@@
#!/bin/sh
#!/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
#
#
# 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
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
+statusfile=$logdir/irspy-last-update.log
+
+# run a full update by default, use Quick for a fast update
: ${irspy_test=Main}
: ${irspy_test=Main}
+mkdir -p $logdir || exit2
+
if [ -f $lockfile ]; then
pid=`cat $lockfile`
if kill -0 $pid 2>/dev/null; then
if [ -f $lockfile ]; then
pid=`cat $lockfile`
if kill -0 $pid 2>/dev/null; then
@@
-31,4
+39,5
@@
do
done
rm -f $lockfile
done
rm -f $lockfile
+date > $statusfile