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:
Anthony Minessale 2007-11-16 18:11:14 +00:00
parent a8a443b487
commit 84435ca1ae

View File

@ -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: