summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2010-09-02 16:39:48 +0800
committerSaul Wold <Saul.Wold@intel.com>2010-09-08 16:36:53 -0700
commit3f71edc3ef4672ea2bbe3d2f604ada121b3870ab (patch)
treeee8ed865b71f8c85b87e3ef7aa404b25cfcb6aef /meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch
parente3f492603ef0bfef8e993157e9d9cb661ac9851a (diff)
downloadpoky-3f71edc3ef4672ea2bbe3d2f604ada121b3870ab.tar.gz
man: Add new man package
A set of documentation tools: man, apropos and whatis Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch')
-rw-r--r--meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch b/meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch
new file mode 100644
index 0000000000..054054b521
--- /dev/null
+++ b/meta/recipes-extended/man/man-1.6e/man-1.6e-ro_usr.patch
@@ -0,0 +1,67 @@
1--- man-1.6e.orig/src/makewhatis.sh 2006-07-19 01:58:08.000000000 -0300
2+++ man-1.6e/src/makewhatis.sh 2007-05-18 10:54:57.000000000 -0300
3@@ -124,7 +124,7 @@
4 continue;;
5 -s) setsections=1
6 continue;;
7- -u) findarg="-ctime 0"
8+ -u) findarg="-newer /var/cache/man/whatis"
9 update=1
10 continue;;
11 -v) verbose=1
12@@ -165,14 +165,7 @@
13 # first truncate all the whatis files that will be created new,
14 # then only update - we might visit the same directory twice
15 if [ x$update = x ]; then
16- for pages in man cat
17- do
18- eval path="\$$pages"path
19- for mandir in $path
20- do
21- cp /dev/null $mandir/whatis
22- done
23- done
24+ cp /dev/null /var/cache/man/whatis
25 fi
26
27 for pages in man cat
28@@ -184,11 +177,6 @@
29 if [ x$verbose != x ]; then
30 echo "about to enter $mandir" > /dev/stderr
31 fi
32- if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
33- if [ x$verbose != x ]; then
34- echo skipping $mandir - we did it already > /dev/stderr
35- fi
36- else
37 here=`pwd`
38 cd $mandir
39 for i in $sections
40@@ -407,23 +395,14 @@
41
42 cd $here
43
44- # kludge for Slackware's /usr/man/preformat
45- if [ $mandir = /usr/man/preformat ]
46- then
47- mandir1=/usr/man
48- else
49- mandir1=$mandir
50- fi
51-
52- if [ -f ${mandir1}/whatis ]
53+ if [ -f /var/cache/man/whatis ]
54 then
55- cat ${mandir1}/whatis >> $TMPFILE
56+ cat /var/cache/man/whatis >> $TMPFILE
57 fi
58- tr -s '\n' < $TMPFILE | sort -u > ${mandir1}/whatis
59+ tr -s '\n' < $TMPFILE | sort -u > /var/cache/man/whatis
60
61- chmod 644 ${mandir1}/whatis
62+ chmod 644 /var/cache/man/whatis
63 rm $TMPFILE
64- fi
65 done
66 done
67