shithub: choc

Download patch

ref: bc87379f59c957ebc1b88fce2516433d8bc3e3a2
parent: 7f4e1ae12414c0a753052df59270f9a867f0766e
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Fri Mar 17 07:22:06 EDT 2017

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.

--- a/configure.ac
+++ b/configure.ac
@@ -141,10 +141,11 @@
 
 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",