summaryrefslogtreecommitdiff
path: root/src/scripts/lookups-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/lookups-Makefile')
-rwxr-xr-xsrc/scripts/lookups-Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile
index 51fbd944b..d2caf70c8 100755
--- a/src/scripts/lookups-Makefile
+++ b/src/scripts/lookups-Makefile
@@ -95,7 +95,10 @@ emit_module_rule() {
local mod_name pkgconf
if [ "${lookup_name%:*}" = "$lookup_name" ]
then
- mod_name=$(echo $lookup_name | tr A-Z a-z)
+ # Square brackets are redundant but benign for POSIX compliant tr,
+ # however Solaris /usr/bin/tr requires them. Sometimes Solaris
+ # gets installed without a complete set of xpg4 tools, sigh.
+ mod_name=$(echo $lookup_name | tr [A-Z] [a-z])
else
mod_name="${lookup_name#*:}"
lookup_name="${lookup_name%:*}"