httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r386825 - in /httpd/mod_mbox/trunk/scripts: create-site-index update-index update-index-monthly
Date Sat, 18 Mar 2006 09:06:16 GMT
Author: jerenkrantz
Date: Sat Mar 18 01:06:12 2006
New Revision: 386825

URL: http://svn.apache.org/viewcvs?rev=386825&view=rev
Log:
Updates to scripts to be less verbose (slightly)

Modified:
    httpd/mod_mbox/trunk/scripts/create-site-index
    httpd/mod_mbox/trunk/scripts/update-index
    httpd/mod_mbox/trunk/scripts/update-index-monthly

Modified: httpd/mod_mbox/trunk/scripts/create-site-index
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/scripts/create-site-index?rev=386825&r1=386824&r2=386825&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/create-site-index (original)
+++ httpd/mod_mbox/trunk/scripts/create-site-index Sat Mar 18 01:06:12 2006
@@ -41,7 +41,7 @@
 
     tlpname=`echo $dirname | cut -d '-' -f 1`
     listname=`echo $dirname | cut -d '-' -f 2-`
-    echo Updating $dirname index $listname @ $tlpname
+    #echo Updating $dirname index $listname @ $tlpname
 
     echo "<li><a href=\"$dirname/\">$listname@$tlpname.apache.org</a></li>"
>> $MBOX_DIR/index.html
 

Modified: httpd/mod_mbox/trunk/scripts/update-index
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/scripts/update-index?rev=386825&r1=386824&r2=386825&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/update-index (original)
+++ httpd/mod_mbox/trunk/scripts/update-index Sat Mar 18 01:06:12 2006
@@ -66,7 +66,7 @@
     fi
 
     if [ -x $APACHE_DIR/bin/mod-mbox-util ]; then
-      $APACHE_DIR/bin/mod-mbox-util -u $MBOX_DIR/$dirname
+      $APACHE_DIR/bin/mod-mbox-util -u $MBOX_DIR/$dirname 2> /dev/null
     else
       if [ -f $mboxfile ]; then
         $APACHE_DIR/bin/generate_index $mboxfile
@@ -75,8 +75,8 @@
     fi
 done
 
-if [ ! -x $APACHE_DIR/bin/mod-mbox-util ]; then
-  $SCRIPT_DIR/create-site-index $ARCHIVES_PATH
+if [ -x $APACHE_DIR/bin/mod-mbox-util ]; then
+  $SCRIPT_DIR/create-site-index $ARCHIVES_PATH > /dev/null
 else
   $SCRIPT_DIR/create-index-all $ARCHIVES_PATH
 fi

Modified: httpd/mod_mbox/trunk/scripts/update-index-monthly
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/scripts/update-index-monthly?rev=386825&r1=386824&r2=386825&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/update-index-monthly (original)
+++ httpd/mod_mbox/trunk/scripts/update-index-monthly Sat Mar 18 01:06:12 2006
@@ -70,10 +70,14 @@
         ln -sf $mboxfile2 $mboxfile
     fi
     if [ -f $mboxfile ]; then
-        echo "Generating index."
-        $APACHE_DIR/bin/generate_index $mboxfile
-        $APACHE_DIR/bin/load_msgid $mboxfile > $mboxfile.msgid
+        if [ ! -x $APACHE_DIR/bin/mod-mbox-util ]; then
+          echo "Generating index."
+          $APACHE_DIR/bin/generate_index $mboxfile
+          $APACHE_DIR/bin/load_msgid $mboxfile > $mboxfile.msgid
+        fi
     fi
 done
 
-$SCRIPT_DIR/create-index-all $ARCHIVES_INDEX
+if [ ! -x $APACHE_DIR/bin/mod-mbox-util ]; then
+  $SCRIPT_DIR/create-index-all $ARCHIVES_INDEX
+fi



Mime
View raw message