forked from Mirrors/freeswitch
install recursion into conf folder
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6308 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a8a443b487
commit
84435ca1ae
10
Makefile.am
10
Makefile.am
@ -162,10 +162,12 @@ install-data-local:
|
|||||||
$(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
|
$(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
|
||||||
done
|
done
|
||||||
@if [ ! -f $(DESTDIR)$(PREFIX)/conf/freeswitch.xml ] ; then \
|
@if [ ! -f $(DESTDIR)$(PREFIX)/conf/freeswitch.xml ] ; then \
|
||||||
$(INSTALL) conf/*.xml $(DESTDIR)$(PREFIX)/conf ; \
|
for conffile in `find conf -name \*.xml && find conf -name \*.conf` ; do \
|
||||||
$(INSTALL) conf/sip_profiles/*.xml $(DESTDIR)$(PREFIX)/conf/sip_profiles ; \
|
dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \
|
||||||
$(INSTALL) conf/dialplan/*.xml $(DESTDIR)$(PREFIX)/conf/dialplan ; \
|
filename=`echo $$conffile | sed -e 's|^.*/||'`; \
|
||||||
$(INSTALL) conf/directory/*.xml $(DESTDIR)$(PREFIX)/conf/directory ; \
|
test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \
|
||||||
|
$(INSTALL) $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir; \
|
||||||
|
done ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.version:
|
.version:
|
||||||
|
Loading…
Reference in New Issue
Block a user