| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: tools.Linux.mk,v 1.64 2020/05/28 14:47:36 nia Exp $ | | 1 | # $NetBSD: tools.Linux.mk,v 1.65 2020/12/05 13:15:58 js Exp $ |
2 | # | | 2 | # |
3 | # System-supplied tools for the Linux operating system. | | 3 | # System-supplied tools for the Linux operating system. |
4 | | | 4 | |
5 | TOOLS_PLATFORM.[?= [ # shell builtin | | 5 | TOOLS_PLATFORM.[?= [ # shell builtin |
6 | .if exists(/etc/debian_version) | | 6 | .if exists(/etc/debian_version) |
7 | TOOLS_PLATFORM.awk?= /usr/bin/awk | | 7 | TOOLS_PLATFORM.awk?= /usr/bin/awk |
8 | .else | | 8 | .else |
9 | TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk} | | 9 | TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk} |
10 | .endif | | 10 | .endif |
11 | .if exists(/usr/bin/autopoint) | | 11 | .if exists(/usr/bin/autopoint) |
12 | TOOLS_PLATFORM.autopoint?= /usr/bin/autopoint | | 12 | TOOLS_PLATFORM.autopoint?= /usr/bin/autopoint |
13 | .endif | | 13 | .endif |
14 | .if exists(/bin/basename) | | 14 | .if exists(/bin/basename) |
| @@ -89,27 +89,31 @@ TOOLS_PLATFORM.env?= /usr/bin/env | | | @@ -89,27 +89,31 @@ TOOLS_PLATFORM.env?= /usr/bin/env |
89 | TOOLS_PLATFORM.expr?= /usr/bin/expr | | 89 | TOOLS_PLATFORM.expr?= /usr/bin/expr |
90 | .elif exists(/bin/expr) | | 90 | .elif exists(/bin/expr) |
91 | TOOLS_PLATFORM.expr?= /bin/expr | | 91 | TOOLS_PLATFORM.expr?= /bin/expr |
92 | .endif | | 92 | .endif |
93 | TOOLS_PLATFORM.false?= false # shell builtin | | 93 | TOOLS_PLATFORM.false?= false # shell builtin |
94 | .if exists(/bin/fgrep) | | 94 | .if exists(/bin/fgrep) |
95 | TOOLS_PLATFORM.fgrep?= /bin/fgrep | | 95 | TOOLS_PLATFORM.fgrep?= /bin/fgrep |
96 | TOOLS_PLATFORM.gfgrep?= /bin/fgrep | | 96 | TOOLS_PLATFORM.gfgrep?= /bin/fgrep |
97 | .elif exists(/usr/bin/fgrep) | | 97 | .elif exists(/usr/bin/fgrep) |
98 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | | 98 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep |
99 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep | | 99 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep |
100 | .endif | | 100 | .endif |
101 | TOOLS_PLATFORM.file?= /usr/bin/file | | 101 | TOOLS_PLATFORM.file?= /usr/bin/file |
| | | 102 | .if exists(/bin/find) |
| | | 103 | TOOLS_PLATFORM.find?= /bin/find |
| | | 104 | .else |
102 | TOOLS_PLATFORM.find?= /usr/bin/find | | 105 | TOOLS_PLATFORM.find?= /usr/bin/find |
| | | 106 | .endif |
103 | .if exists(/etc/debian_version) | | 107 | .if exists(/etc/debian_version) |
104 | . if exists(/usr/bin/gawk) | | 108 | . if exists(/usr/bin/gawk) |
105 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk | | 109 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk |
106 | . endif | | 110 | . endif |
107 | .else | | 111 | .else |
108 | . if exists(/bin/awk) | | 112 | . if exists(/bin/awk) |
109 | TOOLS_PLATFORM.gawk?= /bin/awk | | 113 | TOOLS_PLATFORM.gawk?= /bin/awk |
110 | . else | | 114 | . else |
111 | TOOLS_PLATFORM.gawk?= /usr/bin/awk | | 115 | TOOLS_PLATFORM.gawk?= /usr/bin/awk |
112 | . endif | | 116 | . endif |
113 | .endif | | 117 | .endif |
114 | .if exists(/usr/bin/gettext) | | 118 | .if exists(/usr/bin/gettext) |
115 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | | 119 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext |