summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-07-09 09:46:11 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-07-09 09:46:11 +0000
commit6145a666f9f11ad8d088c89d703fae5181b8817f (patch)
tree11945ef45c4eb0044b62dcda1bc50f630ff7e68d
parentf91e402f967c5b27edd38bdca79dc54807103755 (diff)
A referencable label (cfg_<name>) for each configuration directive.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4404 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--Makefile3
-rw-r--r--README2
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 61ed9e0..a8b5b23 100644
--- a/Makefile
+++ b/Makefile
@@ -382,7 +382,8 @@ tonezones.txt: zonedata.c
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 $<
diff --git a/README b/README
index c5063ac..5113c21 100644
--- a/README
+++ b/README
@@ -556,6 +556,8 @@ Both channels and spans are identified by enumerating numbers (beginning
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~