[zaptel-commits] tzafrir: branch 1.4 r4404 - in /branches/1.4: Makefile README

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jul 9 04:46:11 CDT 2008


Author: tzafrir
Date: Wed Jul  9 04:46:11 2008
New Revision: 4404

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4404
Log:
A referencable label (cfg_<name>) for each configuration directive.

Modified:
    branches/1.4/Makefile
    branches/1.4/README

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=4404&r1=4403&r2=4404
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Wed Jul  9 04:46:11 2008
@@ -382,7 +382,8 @@
 zaptel.conf.asciidoc: zaptel.conf.sample
 	perl -n -e \
 		'if (/^#($$|\s)(.*)/){ if (!$$in_doc){print "\n"}; $$in_doc=1; print "$$2\n" } else { if ($$in_doc){print "\n"}; $$in_doc=0; print "  $$_" }' \
-		$< >$@
+		$< \
+	| perl -p -e 'if (/^  #?(\w+)=/ && ! exists $$cfgs{$$1}){my $$cfg = $$1; $$cfgs{$$cfg} = 1; s/^/\n[[cfg_$$cfg]]\n/}'  >$@
 
 README.html: README zaptel.conf.asciidoc tonezones.txt
 	$(ASCIIDOC) -n -a toc -a toclevels=3 $<

Modified: branches/1.4/README
URL: http://svn.digium.com/view/zaptel/branches/1.4/README?view=diff&rev=4404&r1=4403&r2=4404
==============================================================================
--- branches/1.4/README (original)
+++ branches/1.4/README Wed Jul  9 04:46:11 2008
@@ -556,6 +556,8 @@
 with 1). The number of the channel is the lowest unused one when it is
 generated, and ditto for spans.
 
+See also <<cfg_span,the span configuration directive>>.
+
 
 PROCFS Interface: /proc/zaptel
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the zaptel-commits mailing list