3 # --- T2-COPYRIGHT-NOTE-BEGIN ---
4 # This copyright note is auto-generated by scripts/Create-CopyPatch.
6 # T2 SDE: package/.../cron/00-updates.cron
7 # Copyright (C) 2004 - 2020 The T2 SDE Project
8 # Copyright (C) 1998 - 2003 ROCK Linux Project
10 # More information can be found in the files COPYING and README.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; version 2 of the License. A copy of the
15 # GNU General Public License can be found in the file COPYING.
16 # --- T2-COPYRIGHT-NOTE-END ---
20 echo "Running ldconfig ..."
23 # Recover from deletion, per FHS.
24 #/usr/bin/install -d -o man -g man -m 0755 /var/cache/man
25 # Expunge old catman pages which have not been read in a week.
26 #/usr/bin/find /var/cache/man -type f -name *.gz -atime +6 -delete
27 # Regenerate man database.
28 #/usr/bin/mandb --quiet
30 echo "Running updatedb ..."
31 updatedb
"--prunepaths=/tmp /var/tmp /root /proc /sys /dev /home /user /mnt"
33 echo "Recreate info dir ..."
34 rm -f /usr
/share
/info
/dir
35 find /usr
/share
/info
/opt
/*/info
/ -type f
2>/dev
/null |
36 grep -v -E -e "/dir$|-[0-9]+$" |
38 { install-info
"--info-dir=/usr/share/info" $x 2>&1 ; } |
39 egrep -v 'no info dir entry in|already exists, for file'