mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 43616 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43616 | qwell | 2006-09-25 08:23:31 -0700 (Mon, 25 Sep 2006) | 4 lines One more fix for sounds installation - this time for portability. Reported to asterisk-dev mailing list. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
-include $(ASTTOPDIR)/menuselect.makeopts
|
-include $(ASTTOPDIR)/menuselect.makeopts
|
||||||
|
|
||||||
|
PWD:=$(shell pwd)
|
||||||
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
|
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
|
||||||
MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
|
MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
|
||||||
CORE_SOUNDS_VERSION:=1.4.2
|
CORE_SOUNDS_VERSION:=1.4.2
|
||||||
@@ -57,7 +58,7 @@ $(SOUNDS_DIR)/.asterisk-core-sounds-en-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR) - && \
|
(cd $(SOUNDS_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(SOUNDS_DIR)/.asterisk-core-sounds-es-%:
|
$(SOUNDS_DIR)/.asterisk-core-sounds-es-%:
|
||||||
@@ -65,7 +66,7 @@ $(SOUNDS_DIR)/.asterisk-core-sounds-es-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/es - && \
|
(cd $(SOUNDS_DIR)/es; cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(SOUNDS_DIR)/.asterisk-core-sounds-fr-%:
|
$(SOUNDS_DIR)/.asterisk-core-sounds-fr-%:
|
||||||
@@ -73,7 +74,7 @@ $(SOUNDS_DIR)/.asterisk-core-sounds-fr-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/fr - && \
|
(cd $(SOUNDS_DIR)/fr; cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-en-%:
|
$(SOUNDS_DIR)/.asterisk-extra-sounds-en-%:
|
||||||
@@ -81,7 +82,7 @@ $(SOUNDS_DIR)/.asterisk-extra-sounds-en-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR) - && \
|
(cd $(SOUNDS_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-es-%:
|
$(SOUNDS_DIR)/.asterisk-extra-sounds-es-%:
|
||||||
@@ -89,7 +90,7 @@ $(SOUNDS_DIR)/.asterisk-extra-sounds-es-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/es - && \
|
(cd $(SOUNDS_DIR)/es; cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%:
|
$(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%:
|
||||||
@@ -97,14 +98,14 @@ $(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%:
|
|||||||
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
if test ! -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(SOUNDS_DIR)/fr - && \
|
(cd $(SOUNDS_DIR)/fr; cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(MOH_DIR)/.asterisk-moh-%:
|
$(MOH_DIR)/.asterisk-moh-%:
|
||||||
@PACKAGE=$(subst $(MOH_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
@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 wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||||
cat $${PACKAGE} | gzip -d | tar xCf $(MOH_DIR) - && \
|
(cd $(MOH_DIR); cat $(PWD)/$${PACKAGE} | gzip -d | tar xf -) && \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
asterisk-core-%.tar.gz:
|
asterisk-core-%.tar.gz:
|
||||||
|
Reference in New Issue
Block a user