You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fi...@apache.org on 2008/09/25 03:30:47 UTC
svn commit: r698791 - /httpd/mod_mbox/trunk/scripts/reindex-archive
Author: fielding
Date: Wed Sep 24 18:30:47 2008
New Revision: 698791
URL: http://svn.apache.org/viewvc?rev=698791&view=rev
Log:
make reindex-archive work on current install
Modified:
httpd/mod_mbox/trunk/scripts/reindex-archive
Modified: httpd/mod_mbox/trunk/scripts/reindex-archive
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/scripts/reindex-archive?rev=698791&r1=698790&r2=698791&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/reindex-archive (original)
+++ httpd/mod_mbox/trunk/scripts/reindex-archive Wed Sep 24 18:30:47 2008
@@ -1,8 +1,8 @@
-#!/pkg/zsh-4.0.6/bin/zsh
+#!/bin/zsh
# ZSH 4+ script to retrieve archives in a variety of mechanisms
# This should only be used to fetch brand new archives into an empty
# directory! You have been warned!
-ARCHIVES_PATH=/home/jerenk/work/httpd-mbox/scripts/mbox-archives
+ARCHIVES_PATH=$HOME/archives/mbox-archives.conf
source $ARCHIVES_PATH
@@ -39,11 +39,15 @@
ln -s $i $i.mbox
done
- for i in *.mbox; do
+ if [ -x $APACHE_DIR/bin/mod-mbox-util ]; then
+ $APACHE_DIR/bin/mod-mbox-util -u $MBOX_DIR/$dirname 2> /dev/null
+ else
+ for i in *.mbox; do
echo "Generating index for $i."
$APACHE_DIR/bin/generate_index $i
$APACHE_DIR/bin/load_msgid $i > $i.msgid
- done
+ done
+ fi
popd
fi