diff options
Diffstat (limited to 'meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch')
| -rw-r--r-- | meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch b/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch deleted file mode 100644 index 180d4a3178..0000000000 --- a/meta/recipes-extended/man/man-1.6e/man-1.6e-whatis2.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | --- man-1.6e-ro_usr/src/makewhatis.sh 2007-05-18 11:41:50.000000000 -0300 | ||
| 2 | +++ man-1.6e/src/makewhatis.sh 2007-05-18 13:27:16.000000000 -0300 | ||
| 3 | @@ -162,10 +162,15 @@ | ||
| 4 | fi | ||
| 5 | catpath=`echo ${catpath} | tr : ' '` | ||
| 6 | |||
| 7 | +#WHATIS_DIR=$DESTDIR/var/cache/man/`echo $here|sed -e 's!.*/man/!!g'` | ||
| 8 | +WHATIS_DIR=$DESTDIR/var/cache/man/$LANG | ||
| 9 | +[[ -d $WHATIS_DIR ]] || mkdir -p $WHATIS_DIR/ | ||
| 10 | + | ||
| 11 | # first truncate all the whatis files that will be created new, | ||
| 12 | # then only update - we might visit the same directory twice | ||
| 13 | if [ x$update = x ]; then | ||
| 14 | - cp /dev/null /var/cache/man/whatis | ||
| 15 | + mkdir -p $WHATIS_DIR/ | ||
| 16 | + /bin/echo -n > $WHATIS_DIR/whatis | ||
| 17 | fi | ||
| 18 | |||
| 19 | for pages in man cat | ||
| 20 | @@ -395,13 +400,13 @@ | ||
| 21 | |||
| 22 | cd $here | ||
| 23 | |||
| 24 | - if [ -f /var/cache/man/whatis ] | ||
| 25 | + if [ -f $WHATIS_DIR/whatis ] | ||
| 26 | then | ||
| 27 | - cat /var/cache/man/whatis >> $TMPFILE | ||
| 28 | + cat $WHATIS_DIR/whatis >> $TMPFILE | ||
| 29 | fi | ||
| 30 | - tr -s '\n' < $TMPFILE | sort -u > /var/cache/man/whatis | ||
| 31 | + tr -s '\n' < $TMPFILE | sort -u > $WHATIS_DIR/whatis | ||
| 32 | |||
| 33 | - chmod 644 /var/cache/man/whatis | ||
| 34 | + chmod 644 $WHATIS_DIR/whatis | ||
| 35 | rm $TMPFILE | ||
| 36 | done | ||
| 37 | done | ||
