]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use different version file for moh version
authorBrian West <brian@freeswitch.org>
Tue, 21 Apr 2009 01:11:12 +0000 (01:11 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 21 Apr 2009 01:11:12 +0000 (01:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13093 d0543943-73ff-0310-b7d9-9358b9ac24b2

Makefile.am
build/moh_version.txt [new file with mode: 0644]

index 8928a0bfa1de9d9ca0cf27eb3e18c863767f5761..b19f124f44d333e58a5cb2f16e7e043d7a66406e 100644 (file)
@@ -17,9 +17,11 @@ DEFAULT_SOUNDS=en-us-callie-8000
         target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
         sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
         sounds_version=`cat build/sounds_version.txt`;\
+        moh_version=`cat build/moh_version.txt`;\
         full_sound_dir=`echo $@ | sed -e 's|^sounds||' | sed -e 's|^-||' | sed -e 's|-install$$||'`; \
         test ! -z $$full_sound_dir || full_sound_dir=`echo $(DEFAULT_SOUNDS)`; \
-        soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \
+        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 test "$$target" = "install"; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi; \
          if test "$$target_prefix" = "sounds"; then \
           if test "$$target" = "install"; then $(GETSOUNDS) $$soundfile $(DESTDIR)$(PREFIX)/sounds/; else $(GETSOUNDS) $$soundfile ; fi; \
diff --git a/build/moh_version.txt b/build/moh_version.txt
new file mode 100644 (file)
index 0000000..b0f3d96
--- /dev/null
@@ -0,0 +1 @@
+1.0.8