Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Do not use absolute path for awk while getting the path of awk |
| 2 | when running makewhatis. |
| 3 | This can avoid errors if path of awk changes. |
| 4 | |
| 5 | Upstream-Status: Submitted [man-1.6g] |
| 6 | |
| 7 | Signed-off-by: Jian Liu <jian.liu@windriver.com> |
| 8 | |
| 9 | diff -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 |