[Lunar-commits] <moonbase> man: Move man.conf to /etc; Added makewhatis cronjobs

Stefan Wold ratler at lunar-linux.org
Sat Nov 7 16:33:37 CET 2009


commit 6970d997f7d8cbce97db0a6f56179f965dee30f2
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sat Nov 7 16:33:37 2009 +0100

    man: Move man.conf to /etc; Added makewhatis cronjobs
---
 doc-tools/man/BUILD                  |    2 +-
 doc-tools/man/DETAILS                |    2 +-
 doc-tools/man/cron.daily/makewhatis  |    9 +++++++++
 doc-tools/man/cron.weekly/makewhatis |    9 +++++++++
 4 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/doc-tools/man/BUILD b/doc-tools/man/BUILD
index 9bed60e..ee61ed5 100644
--- a/doc-tools/man/BUILD
+++ b/doc-tools/man/BUILD
@@ -4,7 +4,7 @@
   patch_it $SOURCE2 1 &&
   patch_it $SOURCE3 1 &&
 
-  ./configure -d -compatibility_mode_for_colored_groff  &&
+  ./configure -d -confdir /etc -compatibility_mode_for_colored_groff  &&
   default_make
 
 ) > $C_FIFO 2>&1
diff --git a/doc-tools/man/DETAILS b/doc-tools/man/DETAILS
index 1c4adc0..2e82056 100644
--- a/doc-tools/man/DETAILS
+++ b/doc-tools/man/DETAILS
@@ -11,7 +11,7 @@
      SOURCE3_VFY=sha1:65c0baa2630f501bd37ea266c132531cd299614e
         WEB_SITE=http://primates.ximian.com/~flucifredi/man/
          ENTERED=20010922
-         UPDATED=20080101
+         UPDATED=20091107
            SHORT="Displays the on-line manual pages"
            PSAFE="no"
 
diff --git a/doc-tools/man/cron.daily/makewhatis b/doc-tools/man/cron.daily/makewhatis
new file mode 100644
index 0000000..21d3eb0
--- /dev/null
+++ b/doc-tools/man/cron.daily/makewhatis
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+LOCKFILE=/var/lock/makewhatis.lock
+[ -f $LOCKFILE ] && exit 0
+
+trap "{ rm -f $LOCKFILE; exit 255; }" EXIT
+touch $LOCKFILE
+makewhatis -u -w
+exit 0
diff --git a/doc-tools/man/cron.weekly/makewhatis b/doc-tools/man/cron.weekly/makewhatis
new file mode 100644
index 0000000..b05ff66
--- /dev/null
+++ b/doc-tools/man/cron.weekly/makewhatis
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+LOCKFILE=/var/lock/makewhatis.lock
+[ -f $LOCKFILE ] && exit 0
+
+trap "{ rm -f $LOCKFILE; exit 255; }" EXIT
+touch $LOCKFILE
+makewhatis -w
+exit 0


More information about the Lunar-commits mailing list