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 ; \
|
||||
done
|
||||
@if [ ! -f $(DESTDIR)$(PREFIX)/conf/freeswitch.xml ] ; then \
|
||||
$(INSTALL) conf/*.xml $(DESTDIR)$(PREFIX)/conf ; \
|
||||
$(INSTALL) conf/sip_profiles/*.xml $(DESTDIR)$(PREFIX)/conf/sip_profiles ; \
|
||||
$(INSTALL) conf/dialplan/*.xml $(DESTDIR)$(PREFIX)/conf/dialplan ; \
|
||||
$(INSTALL) conf/directory/*.xml $(DESTDIR)$(PREFIX)/conf/directory ; \
|
||||
for conffile in `find conf -name \*.xml && find conf -name \*.conf` ; do \
|
||||
dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \
|
||||
filename=`echo $$conffile | sed -e 's|^.*/||'`; \
|
||||
test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \
|
||||
$(INSTALL) $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir; \
|
||||
done ; \
|
||||
fi
|
||||
|
||||
.version:
|
||||
|
Loading…
Reference in New Issue
Block a user