Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> |
| 4 | |
| 5 | Index: man-1.6f/src/makewhatis.sh |
| 6 | =================================================================== |
| 7 | --- man-1.6f.orig/src/makewhatis.sh 2010-12-29 13:42:34.000000000 -0800 |
| 8 | +++ man-1.6f/src/makewhatis.sh 2010-12-29 13:42:35.667428347 -0800 |
| 9 | @@ -124,7 +124,7 @@ |
| 10 | continue;; |
| 11 | -s) setsections=1 |
| 12 | continue;; |
| 13 | - -u) findarg="-ctime 0" |
| 14 | + -u) findarg="-newer /var/cache/man/whatis" |
| 15 | update=1 |
| 16 | continue;; |
| 17 | -v) verbose=1 |
| 18 | @@ -165,14 +165,7 @@ |
| 19 | # first truncate all the whatis files that will be created new, |
| 20 | # then only update - we might visit the same directory twice |
| 21 | if [ x$update = x ]; then |
| 22 | - for pages in man cat |
| 23 | - do |
| 24 | - eval path="\$$pages"path |
| 25 | - for mandir in $path |
| 26 | - do |
| 27 | - cp /dev/null $mandir/whatis |
| 28 | - done |
| 29 | - done |
| 30 | + cp /dev/null /var/cache/man/whatis |
| 31 | fi |
| 32 | |
| 33 | for pages in man cat |