summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorGeorgios M. Zarkadas <gz@member.fsf.org>2012-05-27 20:54:23 +0300
committerGeorgios M. Zarkadas <gz@member.fsf.org>2012-06-12 20:54:23 +0300
commit07816ee41eba4d6f55d1e006e9ccce099fe4dc8e (patch)
tree89c3a730450568556b9e75444f838e0e9c00b581 /debian
parentb874bc640308755d0f0f5b5241a16fb2e7feda41 (diff)
Modify index-building scripts to use dhelp_parse.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/cron.weekly9
1 files changed, 6 insertions, 3 deletions
diff --git a/debian/cron.weekly b/debian/cron.weekly
index 020a3d9..995c168 100755
--- a/debian/cron.weekly
+++ b/debian/cron.weekly
@@ -17,7 +17,10 @@
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA.
-if [ -d /var/lib/dhelp -a -x /usr/bin/index++ ]; then
- rm -f /var/lib/dhelp/documents.index
- ruby1.8 -rdhelp -e "Dhelp::DhelpDocumentPool.new.rebuild"
+if [ -d /var/lib/dhelp ] && \
+ [ -x /usr/sbin/dhelp_parse ] && \
+ [ -x /usr/bin/index++ ]; then
+ rm --force /var/lib/dhelp/documents.index || true
+ /usr/sbin/dhelp_parse -r
+ /usr/sbin/dhelp_parse -i
fi