labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r920945 - /labs/pulse/cron.d/incoming.sh
Date Tue, 09 Mar 2010 15:58:35 GMT
Author: coar
Date: Tue Mar  9 15:58:35 2010
New Revision: 920945

URL: http://svn.apache.org/viewvc?rev=920945&view=rev
Log:
This appears ready to go.. for now

Modified:
    labs/pulse/cron.d/incoming.sh

Modified: labs/pulse/cron.d/incoming.sh
URL: http://svn.apache.org/viewvc/labs/pulse/cron.d/incoming.sh?rev=920945&r1=920944&r2=920945&view=diff
==============================================================================
--- labs/pulse/cron.d/incoming.sh (original)
+++ labs/pulse/cron.d/incoming.sh Tue Mar  9 15:58:35 2010
@@ -3,19 +3,24 @@
 # Script run as a cron job to load any outstanding data files and
 # generate the Web pages.
 #
+# If any value is specified for $1 the Web pages will be regenerated
+# whether the data have been updated or not.
+#
 . /usr/local/labs/pulse/.pulserc
 
 cd $PULSE_DIR/data/queue
 NLOADED=0
 
-for INFILE in *.xml ; do
-    if $PULSE_DIR/analysis/listex-load.pl -n -f $INFILE ; then
-#        mv $FILE ../processed/
-        NLOADED=$(expr $NLOADED + 1)
-    fi
-done
+if [ "$(echo *.xml)" != '*.xml' ] ; then
+    for INFILE in *.xml ; do
+        if $PULSE_DIR/analysis/listex-load.pl -f $INFILE ; then
+            mv $INFILE ../processed/
+            NLOADED=$(expr $NLOADED + 1)
+        fi
+    done
+fi
 
-[ $NLOADED -gt 0 ] && {
+if [ -n "$1" -o $NLOADED -gt 0 ] ; then
     cd $PULSE_DIR/web-reports
-    ./mlists.php -n -o $WEB_DIR
-}
+    php ./mlists.php -o $WEB_DIR
+fi



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message