]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Remove bashism from our Makefile hack
authorTravis Cross <tc@traviscross.com>
Thu, 8 May 2014 21:26:03 +0000 (21:26 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 8 May 2014 21:26:03 +0000 (21:26 +0000)
This makes portable the fix from commit
28ee7736d967f18215ef35f9cda82990baa82cc5.

Makefile.am

index 33890f4b927c4b9d63d2012bd4c23546e6f697e3..c4eaf62f1fb0b6cc11534ab794c0a1ed5a8ecc88 100644 (file)
@@ -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)/;\