commit bc87379f59c957ebc1b88fce2516433d8bc3e3a2
Author: Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Fri Mar 17 11:22:06 2017 -0700
Commit: Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Fri Mar 17 11:22:06 2017 -0700
configure.ac: Use echo|tr to change PROGRAM_PREFIX case
The ${VAR,} syntax seems to be new to Bash 4, and thus not portable
to older versions or other shells.
---
configure.ac | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5d37dca6..5d29c3b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,10 +141,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION | sed 's/-.*//; s/\./, /g; s/$/, 0/'`
-PROGRAM_PREFIX=${PACKAGE_SHORTNAME,}-
-
dnl Without a hyphen. This is used for the bash-completion scripts.
-PROGRAM_SPREFIX=${PACKAGE_SHORTNAME,}
+PROGRAM_SPREFIX=$(echo $PACKAGE_SHORTNAME | tr A-Z a-z)
+
+dnl With a hyphen, used almost everywhere else.
+PROGRAM_PREFIX=${PROGRAM_SPREFIX}-
AC_SUBST(PROGRAM_PREFIX)
AC_DEFINE_UNQUOTED(PROGRAM_PREFIX, "$PROGRAM_PREFIX",