PageRenderTime 26ms CodeModel.GetById 24ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/cron.weekly/dwww

http://github.com/brinkman83/bashrc
Shell | 22 lines | 6 code | 8 blank | 8 comment | 4 complexity | a37535049758c860e4fe2c8f662090fd MD5 | raw file
 1#!/bin/sh
 2# $Id: dwww.cron.weekly,v 1.3 2007-12-16 09:56:31 robert Exp $
 3#
 4# This script creates an index of Debian documentation registered
 5# with doc-base. See dwww-index++(8) man page for details.
 6
 7# check if swish++ is installed
 8test -x /usr/bin/index++ || exit 0
 9
10# check if dwww is still installed
11test -x /usr/sbin/dwww-index++ || exit 0
12
13
14
15set -e
16
17# See ionice(1)
18[ -x /usr/bin/ionice ] &&  IONICE="/usr/bin/ionice -c3" || IONICE=
19
20$IONICE dwww-index++ > /dev/null
21
22exit 0