[Freeswitch-trunk] [commit] r6308 - freeswitch/trunk

Freeswitch SVN anthm at freeswitch.org
Fri Nov 16 13:11:14 EST 2007


Author: anthm
Date: Fri Nov 16 13:11:14 2007
New Revision: 6308

Modified:
   freeswitch/trunk/Makefile.am

Log:
install recursion into conf folder

Modified: freeswitch/trunk/Makefile.am
==============================================================================
--- freeswitch/trunk/Makefile.am	(original)
+++ freeswitch/trunk/Makefile.am	Fri Nov 16 13:11:14 2007
@@ -162,10 +162,12 @@
 		$(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:



More information about the Freeswitch-trunk mailing list