summaryrefslogtreecommitdiffstats
path: root/sys-utils/update_state.sh
diff options
context:
space:
mode:
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 f318d08a1..000000000
--- 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