summaryrefslogtreecommitdiff
path: root/sys-utils/update_state.sh
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:33 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /sys-utils/update_state.sh
parent6dbe3af945a63f025561abb83275cee9ff06c57b (diff)
downloadutil-linux-old-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
Imported from util-linux-2.5 tarball.
Diffstat (limited to 'sys-utils/update_state.sh')
-rw-r--r--sys-utils/update_state.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/sys-utils/update_state.sh b/sys-utils/update_state.sh
deleted file mode 100644
index f318d08a..00000000
--- a/sys-utils/update_state.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-if test "`whoami`" != "root"; then
- echo "This script must be executed by root"
- exit 1
-fi
-
-if test -x /usr/lib/locate/updatedb; then
- echo "WARNING: The /usr/lib/locate/find.codes file may violate the"
- echo " privacy of your users. Please consider making it"
- echo " readable only by root."
- echo ""
- echo "Updating locate database"
-
- /usr/lib/locate/updatedb
-fi
-
-if test -d /usr/lib/texmf; then
- echo "Building ls-R cache file for TeX"
- /bin/ls -LR /usr/lib/texmf > /tmp/ls-R.$$
- if test -f /usr/lib/texmf/ls-R; then
- cp /usr/lib/texmf/ls-R /usr/lib/texmf/ls-R.old
- fi
- mv /tmp/ls-R.$$ /usr/lib/texmf/ls-R
-fi
-
-if test -x /usr/bin/makewhatis; then
- for i in /usr/man /usr/local/man /usr/X386/man /usr/interviews/man; do
- if test -d $i; then
- echo "Building whatis database in $i"
- /usr/bin/makewhatis $i
- fi
- done
-fi
-
-if test -x /usr/bin/mandb; then
- echo "Updating manpage database"
- /usr/bin/mandb
-fi
-
-exit 0