]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't require another configure when you just change the sound files version
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 8 Sep 2008 18:10:28 +0000 (18:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 8 Sep 2008 18:10:28 +0000 (18:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9480 d0543943-73ff-0310-b7d9-9358b9ac24b2

Makefile.am
build/sounds_version.txt [new file with mode: 0644]
configure.in

index 3affb77e700e9644310ee7f21d0670806333476a..925892b760620aeec9eaba1230ace659c9567998 100644 (file)
@@ -16,9 +16,10 @@ DEFAULT_SOUNDS=en-us-callie-8000
        @target=`echo $@ | sed -e 's|^.*-||'`; \
         target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
         sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
+        sounds_version=`cat build/sounds_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-$$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/sounds_version.txt b/build/sounds_version.txt
new file mode 100644 (file)
index 0000000..21e8796
--- /dev/null
@@ -0,0 +1 @@
+1.0.3
index c839acce61f5f87d2b2fba0686078cceb0c618ca..9369c23a3b4d15439c93be77f148f9c6d31da800 100644 (file)
@@ -8,7 +8,6 @@ AC_SUBST(SWITCH_VERSION_MAJOR, [1])
 AC_SUBST(SWITCH_VERSION_MINOR, [0])
 AC_SUBST(SWITCH_VERSION_MICRO, [trunk])
 #AC_SUBST(SWITCH_VERSION_REVISION, [svn-revision-here])
-AC_SUBST(SOUNDS_VERSION, [1.0.3])
 
 AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])