blob: 633445685755a065767e2e12f7d7e8aeff25aa83 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Do not use absolute path for awk while getting the path of awk
2when running makewhatis.
3This can avoid errors if path of awk changes.
4
5Upstream-Status: Submitted [man-1.6g]
6
7Signed-off-by: Jian Liu <jian.liu@windriver.com>
8
9diff -Nur man-1.6g.orig/src/makewhatis.sh man-1.6g/src/makewhatis.sh
10--- man-1.6g.orig/src/makewhatis.sh 2015-02-25 16:13:12.657611419 +0800
11+++ man-1.6g/src/makewhatis.sh 2015-02-25 16:14:49.334694815 +0800
12@@ -67,7 +67,7 @@
13 # but that leads to problems and bugs.
14
15 # AWK=/usr/bin/gawk
16-AWK=@awk@
17+AWK=`which awk`
18
19 # Find a place for our temporary files. If security is not a concern, use
20 # TMPFILE=/tmp/whatis$$; TMPFILEDIR=none