[Freeswitch-svn] [commit] r13093 - in freeswitch/trunk: . build

FreeSWITCH SVN brian at freeswitch.org
Mon Apr 20 18:11:12 PDT 2009


Author: brian
Date: Mon Apr 20 20:11:12 2009
New Revision: 13093

Log:
use different version file for moh version

Added:
   freeswitch/trunk/build/moh_version.txt
      - copied unchanged from r13091, /freeswitch/trunk/build/sounds_version.txt
Modified:
   freeswitch/trunk/Makefile.am

Modified: freeswitch/trunk/Makefile.am
==============================================================================
--- freeswitch/trunk/Makefile.am	(original)
+++ freeswitch/trunk/Makefile.am	Mon Apr 20 20:11:12 2009
@@ -17,9 +17,11 @@
 	 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; \



More information about the Freeswitch-svn mailing list