From: Travis Cross Date: Thu, 8 May 2014 21:26:03 +0000 (+0000) Subject: Remove bashism from our Makefile hack X-Git-Tag: v1.5.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c0e40ea7e121800e448598e82b41933988fb145;p=thirdparty%2Ffreeswitch.git Remove bashism from our Makefile hack This makes portable the fix from commit 28ee7736d967f18215ef35f9cda82990baa82cc5. --- diff --git a/Makefile.am b/Makefile.am index 33890f4b92..c4eaf62f1f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,7 +43,7 @@ DEFAULT_SOUNDS=en-us-callie-8000 sounds_version=`grep $$base_sound_dir $(switch_srcdir)/build/sounds_version.txt | cut -d ' ' -f2`;\ soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$moh_version.tar.gz`; \ echo $$full_sound_dir | grep music >/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \ - if [[ $@ != -l* ]] ; then \ + args="$@"; if test -z "$$args" || test "$${args#-l*}" = "$args"; then \ if test "$$target_prefix" = "sounds"; then \ if test "$$target" = "install"; then \ $(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\