38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
--- man-1.6e-ro_usr/src/makewhatis.sh 2007-05-18 11:41:50.000000000 -0300
|
|
+++ man-1.6e/src/makewhatis.sh 2007-05-18 13:27:16.000000000 -0300
|
|
@@ -162,10 +162,15 @@
|
|
fi
|
|
catpath=`echo ${catpath} | tr : ' '`
|
|
|
|
+#WHATIS_DIR=$DESTDIR/var/cache/man/`echo $here|sed -e 's!.*/man/!!g'`
|
|
+WHATIS_DIR=$DESTDIR/var/cache/man/$LANG
|
|
+[[ -d $WHATIS_DIR ]] || mkdir -p $WHATIS_DIR/
|
|
+
|
|
# first truncate all the whatis files that will be created new,
|
|
# then only update - we might visit the same directory twice
|
|
if [ x$update = x ]; then
|
|
- cp /dev/null /var/cache/man/whatis
|
|
+ mkdir -p $WHATIS_DIR/
|
|
+ /bin/echo -n > $WHATIS_DIR/whatis
|
|
fi
|
|
|
|
for pages in man cat
|
|
@@ -395,13 +400,13 @@
|
|
|
|
cd $here
|
|
|
|
- if [ -f /var/cache/man/whatis ]
|
|
+ if [ -f $WHATIS_DIR/whatis ]
|
|
then
|
|
- cat /var/cache/man/whatis >> $TMPFILE
|
|
+ cat $WHATIS_DIR/whatis >> $TMPFILE
|
|
fi
|
|
- tr -s '\n' < $TMPFILE | sort -u > /var/cache/man/whatis
|
|
+ tr -s '\n' < $TMPFILE | sort -u > $WHATIS_DIR/whatis
|
|
|
|
- chmod 644 /var/cache/man/whatis
|
|
+ chmod 644 $WHATIS_DIR/whatis
|
|
rm $TMPFILE
|
|
done
|
|
done
|