[asterisk-commits] qwell: trunk r43387 - in /trunk: ./
sounds/Makefile
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Sep 20 15:29:32 MST 2006
Author: qwell
Date: Wed Sep 20 17:29:31 2006
New Revision: 43387
URL: http://svn.digium.com/view/asterisk?rev=43387&view=rev
Log:
Merged revisions 43386 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r43386 | qwell | 2006-09-20 15:27:54 -0700 (Wed, 20 Sep 2006) | 2 lines
Go back to the old(ish) way of installing sound files.
........
Modified:
trunk/ (props changed)
trunk/sounds/Makefile
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Wed Sep 20 17:29:31 2006
@@ -1,1 +1,1 @@
-/branches/1.4:1-43376,43383
+/branches/1.4:1-43376,43383,43386
Modified: trunk/sounds/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/sounds/Makefile?rev=43387&r1=43386&r2=43387&view=diff
==============================================================================
--- trunk/sounds/Makefile (original)
+++ trunk/sounds/Makefile Wed Sep 20 17:29:31 2006
@@ -53,26 +53,60 @@
all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
-$(SOUNDS_DIR)/.asterisk-core-sounds-en-%: asterisk-core-sounds-en-%.tar.gz $(SOUNDS_DIR)
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR) -
+$(SOUNDS_DIR)/.asterisk-core-sounds-en-%: $(SOUNDS_DIR)
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
+ cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR) -
+ touch $@
-$(SOUNDS_DIR)/.asterisk-core-sounds-fr-%: asterisk-core-sounds-fr-%.tar.gz $(SOUNDS_DIR)/fr
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR)/fr -
+$(SOUNDS_DIR)/.asterisk-core-sounds-es-%: $(SOUNDS_DIR)/es
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
+ cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/es -
+ touch $@
-$(SOUNDS_DIR)/.asterisk-core-sounds-es-%: asterisk-core-sounds-es-%.tar.gz $(SOUNDS_DIR)/es
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR)/es -
+$(SOUNDS_DIR)/.asterisk-core-sounds-fr-%: $(SOUNDS_DIR)/fr
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
+ cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/fr -
+ touch $@
-$(SOUNDS_DIR)/.asterisk-extra-sounds-en-%: asterisk-extra-sounds-en-%.tar.gz $(SOUNDS_DIR)
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR) -
+$(SOUNDS_DIR)/.asterisk-extra-sounds-en-%: $(SOUNDS_DIR)
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
+ cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR) -
+ touch $@
-$(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%: asterisk-extra-sounds-fr-%.tar.gz $(SOUNDS_DIR)/fr
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR)/fr -
+$(SOUNDS_DIR)/.asterisk-extra-sounds-es-%: $(SOUNDS_DIR)/es
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
+ cat /$${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/es -
+ touch $@
-$(SOUNDS_DIR)/.asterisk-extra-sounds-es-%: asterisk-extra-sounds-es-%.tar.gz $(SOUNDS_DIR)/es
- cat $< | gzip -d | tar xCf $(SOUNDS_DIR)/es -
+$(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%: $(SOUNDS_DIR)/fr
+ @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
+ cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/fr -
+ touch $@
-$(MOH_DIR)/.asterisk-moh-%: asterisk-moh-%.tar.gz $(MOH_DIR)
- cat $< | gzip -d | tar xCf $(MOH_DIR) -
+$(MOH_DIR)/.asterisk-moh-%: $(MOH_DIR)
+ @PACKAGE=$(subst $(MOH_DIR)/.asterisk,asterisk,$@).tar.gz; \
+ if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
+ if test ! -f $${PACKAGE}; then exit 1; fi; \
+ cat $${PACKAGE} | gzip -d | tar xCf $(MOH_DIR) -
+ touch $@
asterisk-core-%.tar.gz:
@wget $(WGET_ARGS) $(SOUNDS_URL)/$@
More information about the asterisk-commits
mailing list