[dahdi-commits] tzafrir: tools/trunk r4844 - in /tools/trunk: Makefile README system.conf.sample

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Tue Aug 26 09:35:21 CDT 2008


Author: tzafrir
Date: Tue Aug 26 09:35:20 2008
New Revision: 4844

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4844
Log:
* Add a "docs" target to generate documentation.
* Demote/promote some headers.
* Fix URL for on-line copy of the README.

Modified:
    tools/trunk/Makefile
    tools/trunk/README
    tools/trunk/system.conf.sample

Modified: tools/trunk/Makefile
URL: http://svn.digium.com/view/dahdi/tools/trunk/Makefile?view=diff&rev=4844&r1=4843&r2=4844
==============================================================================
--- tools/trunk/Makefile (original)
+++ tools/trunk/Makefile Tue Aug 26 09:35:20 2008
@@ -114,6 +114,8 @@
 GROFF_PAGES	:= $(wildcard doc/*.8 xpp/*.8)
 GROFF_HTML	:= $(GROFF_PAGES:%=%.html)
 
+GENERATED_DOCS	:= $(GROFF_HTML) README.html # README.Astribank.html
+
 all: menuselect.makeopts 
 	@$(MAKE) _all
 
@@ -184,11 +186,13 @@
 		$< \
 	| perl -p -e 'if (/^  #?(\w+)=/ && ! exists $$cfgs{$$1}){my $$cfg = $$1; $$cfgs{$$cfg} = 1; s/^/\n[[cfg_$$cfg]]\n/}'  >$@
 
+docs: $(GENERATED_DOCS)
+
 README.html: README system.conf.asciidoc init.conf.asciidoc tonezones.txt
 	$(ASCIIDOC) -n -a toc -a toclevels=3 $<
 
-kernel/xpp/README.Astribank.html: kernel/xpp/README.Astribank
-	cd $(@D); $(ASCIIDOC) -o $(@F) -n -a toc -a toclevels=4 $(<F)
+README.Astribank.html: xpp/README.Astribank
+	$(ASCIIDOC) -o $@ -n -a toc -a toclevels=4 $<
 
 # on Debian: this requires the full groof, not just groff-base.
 %.8.html: %.8
@@ -304,8 +308,7 @@
 	rm -f fxotune
 	rm -f core
 	rm -f dahdi_cfg-shared fxstest
-	rm -rf $(GROFF_HTML)
-	rm -rf README.html xpp/README.Astribank.html *.asciidoc tonezones.txt
+	rm -rf $(GENERATED_DOCS) *.asciidoc tonezones.txt
 
 distclean: dist-clean
 

Modified: tools/trunk/README
URL: http://svn.digium.com/view/dahdi/tools/trunk/README?view=diff&rev=4844&r1=4843&r2=4844
==============================================================================
--- tools/trunk/README (original)
+++ tools/trunk/README Tue Aug 26 09:35:20 2008
@@ -8,7 +8,7 @@
 included in the package dahdi-linux.
 
 Build Requirements
-~~~~~~~~~~~~~~~~~~
+------------------
 This package needs the headers from dahdi-linux. Thus you should install
 dahdi-linux before building dahdi-tools.
 
@@ -24,7 +24,7 @@
 
 
 Build System
-~~~~~~~~~~~~~~
+~~~~~~~~~~~~
 gcc and friends. Generally you will need to install the package gcc.
 There may be cases where you will need a specific version of gcc to build
 kernel modules.
@@ -72,8 +72,9 @@
     partial targets)
   - make config: should be run once to configure 
 
-Building to a Subtree
-^^^^^^^^^^^^^^^^^^^^^
+
+Installation to a Subtree
+^^^^^^^^^^^^^^^^^^^^^^^^^
 The following may be useful when testing the package or when preparing a
 package for a binary distribution (such as an rpm package) installing
 onto a subtree rather than on th real system. 
@@ -81,6 +82,7 @@
   make install DESTDIR=targetdir
 
 This can be useful for any partial install target from the list above.
+
 
 ./configure Options
 ^^^^^^^^^^^^^^^^^^^
@@ -100,8 +102,9 @@
 
   ./ocnfig.status --recheck
 
+
 Configuration
-~~~~~~~~~~~~~
+-------------
 Configuration for DAHDI resides under /etc/dahdi . 
 
 /etc/dahdi/system.conf
@@ -182,6 +185,7 @@
   by a driver. Shows also some more information for Astribanks from
   /proc/xpp .
 
+
 PPP Support
 ~~~~~~~~~~~
 DAHDI digital cards can provide data channels through ppp as
@@ -201,8 +205,9 @@
    distribution kernels and for HDLC (much less common) - CONFIG_PPP and
    CONFIG_HDLC .
 
+
 License
-~~~~~~~
+-------
 This package is distributed under the terms of the GNU General Public License
 Version 2, except for some components which are distributed under the terms of
 the GNU Lesser General Public License Version 2.1. Both licenses are included
@@ -213,15 +218,17 @@
 more flexible terms can be readily obtained through Digium, Inc. at reasonable
 cost.
 
+
 Reporting Bugs
-~~~~~~~~~~~~~~
+--------------
 Please report bug and patches to the Asterisk bug tracker at
 http://bugs.digium.com in the "DAHDI" category.
+
 
 Links
 -----
 - http://asterisk.org/[] - The Asterisk PBX
 - http://voip-info.org/[]
 - http://voip-info.org/wiki/view/Asterisk+Zaptel+Installation[]
-- http://docs.tzafrir.org.il/dahdi/README.html[Up-to-date HTML version
+- http://docs.tzafrir.org.il/dahdi-tools/README.html[Up-to-date HTML version
   of this file]

Modified: tools/trunk/system.conf.sample
URL: http://svn.digium.com/view/dahdi/tools/trunk/system.conf.sample?view=diff&rev=4844&r1=4843&r2=4844
==============================================================================
--- tools/trunk/system.conf.sample (original)
+++ tools/trunk/system.conf.sample Tue Aug 26 09:35:20 2008
@@ -4,7 +4,7 @@
 # This file is parsed by the DAHDI Configurator, dahdi_cfg
 #
 # Span Configuration
-# ~~~~~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^^^^^
 # First come the span definitions, in the format
 # 
 #   span=<span num>,<timing source>,<line build out (LBO)>,<framing>,<coding>[,yellow]
@@ -57,7 +57,7 @@
 #span=3,0,0,ccs,hdb3,crc4
 #
 # Dynamic Spans
-# ~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^
 # Next come the dynamic span definitions, in the form:
 # 
 #   dynamic=<driver>,<address>,<numchans>,<timing>
@@ -75,7 +75,7 @@
 # have the non-zero value. 
 #
 # Channel Configuration
-# ~~~~~~~~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^^^^^^^^
 # Next come the definitions for using the channels.  The format is:
 # <device>=<channel list>
 #
@@ -178,7 +178,7 @@
 #dacsrbs=1-24:48
 #
 # Tone Zone Data
-# ~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^
 # Finally, you can preload some tone zones, to prevent them from getting
 # overwritten by other users (if you allow non-root users to open /dev/dahdi/*
 # interfaces anyway.  Also this means they won't have to be loaded at runtime.
@@ -206,7 +206,7 @@
 defaultzone=us
 #
 # PCI Radio Interface
-# ~~~~~~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^^^^^^
 # (see http://www.zapatatelephony.org/app_rpt.html)
 #
 # The PCI Radio Interface card interfaces up to 4 two-way radios (either
@@ -272,7 +272,7 @@
 #channels=1-4
 #
 # Overiding PCM encoding
-# ~~~~~~~~~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^^^^^^^^^
 # Usually the channel driver sets the encoding of the PCM for the
 # channel (mulaw / alaw. That is: g711u or g711a). However there are
 # some cases where you would like to override that. 'mulaw' and 'alaw'
@@ -287,7 +287,7 @@
 #deflaw=5
 #
 # Echo Cancellers
-# ~~~~~~~~~~~~~~~
+# ^^^^^^^^^^^^^^^
 # DAHDI uses modular echo cancellers that are configured per channel. The echo
 # cancellers are compiled and installed as part of the dahdi-linux package.
 # You can specify in this file the echo canceller to be used for each




More information about the dahdi-commits mailing list