summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 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 $<