From 87a8b2b6d3c55976185b342770006596703bdfd9 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Sat, 3 May 2008 19:19:06 +0000 Subject: Docuemnt the tonezones we currently have. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4232 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- Makefile | 8 +++++++- README | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7444c3..622e980 100644 --- a/Makefile +++ b/Makefile @@ -373,12 +373,18 @@ fxsdump: LDLIBS+=-lm stackcheck: checkstack modules ./checkstack kernel/*.ko kernel/*/*.ko + +tonezones.txt: zonedata.c + perl -ne 'next unless (/\.(country|description) = *"([^"]*)/); \ + print (($$1 eq "country")? "* $$2\t":"$$2\n");' $< \ + >$@ + 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 " $$_" }' \ $< >$@ -README.html: README zaptel.conf.asciidoc +README.html: README zaptel.conf.asciidoc tonezones.txt $(ASCIIDOC) -n -a toc -a toclevels=3 $< kernel/xpp/README.Astribank.html: kernel/xpp/README.Astribank diff --git a/README b/README index ed4f3ed..da07d7a 100644 --- a/README +++ b/README @@ -413,6 +413,13 @@ Reference Configuration ----------------------- include::zaptel.conf.asciidoc[] +Tonezones +~~~~~~~~~ +The file zonedata.c contains the information about the tone zones used +in libtonezone (and hence also in ztcfg). Here is a list of those zones: + +include::tonezones.txt[] + Zaptel PERL modules ------------------- -- cgit v1.2.3