| 1 |
diff -up man-1.6f/src/makewhatis.sh.update man-1.6f/src/makewhatis.sh
|
| 2 |
--- man-1.6f/src/makewhatis.sh.update 2009-04-19 22:01:26.900609474 +0200
|
| 3 |
+++ man-1.6f/src/makewhatis.sh 2009-04-19 22:06:46.690612151 +0200
|
| 4 |
@@ -35,6 +35,8 @@
|
| 5 |
# 060608 - Corrected traps.
|
| 6 |
# 060719 - section choosing behavior to match man's (Mike frysinger).
|
| 7 |
#
|
| 8 |
+# 090419 - Add -U flag, Lubomir Rintel <lkundrak@v3.sk>
|
| 9 |
+#
|
| 10 |
# Note for Slackware users: "makewhatis -v -w -c" will work.
|
| 11 |
#
|
| 12 |
# makewhatis flc 060719 (from @version@)
|
| 13 |
@@ -121,6 +123,9 @@ case $name in
|
| 14 |
continue;;
|
| 15 |
-o) setwhatis=1
|
| 16 |
continue;;
|
| 17 |
+ -U) [ -f "$whatisdb" ] && findarg="-cnewer $whatisdb"
|
| 18 |
+ update=1
|
| 19 |
+ continue;;
|
| 20 |
-u) findarg="-ctime 0"
|
| 21 |
update=1
|
| 22 |
continue;;
|
| 23 |
@@ -133,7 +138,8 @@ case $name in
|
| 24 |
echo " This will build the whatis database for the man pages"
|
| 25 |
echo " found in manpath and the cat pages found in catpath."
|
| 26 |
echo " -s: sections (default: $sections)"
|
| 27 |
- echo " -u: update database with new pages"
|
| 28 |
+ echo " -u: update database with pages added today"
|
| 29 |
+ echo " -U: update database with pages added since last makewhatis run"
|
| 30 |
echo " -v: verbose"
|
| 31 |
echo " -o: location of whatis database (default: $DEFWHATIS)"
|
| 32 |
echo " -w: use manpath obtained from \`man --path\`"
|