[svn-commits] lmadsen: branch 1.6.2 r258384 - in /branches/1.6.2: ./ build_tools/ doc/tex/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Apr 21 14:30:20 CDT 2010


Author: lmadsen
Date: Wed Apr 21 14:30:18 2010
New Revision: 258384

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=258384
Log:
Merged revisions 258351 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r258351 | lmadsen | 2010-04-21 14:18:35 -0500 (Wed, 21 Apr 2010) | 20 lines
  
  Add ability to generate ASCII documentation from the TeX files.
  
  These changes add the ability to run 'make asterisk.txt' just like the existing
  'make asterisk.pdf' commands to generate a text document from the TeX files we
  have in the doc/tex/ directory. I've also updated a few of the .tex files because
  they weren't properly escaping certain characters so they would show up as Unicode
  characters (like [U+021C]). Made changes to the configure scripts so it would
  detect the catdvi program which is required to convert the .dvi file generated
  by latex.
  
  I've also added a few lines to the build_tools/prep_tarball script so that the
  text documentation gets generated and added to future tarballs of Asterisk
  releases.
  
  (closes issue #17220)
  Reported by: lmadsen
  Patches: 
        asterisk.txt.patch uploaded by lmadsen (license 10)
        asterisk.txt.patch-v4 uploaded by pabelanger (license 224)
  Tested by: lmadsen, pabelanger
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/Makefile
    branches/1.6.2/build_tools/prep_tarball
    branches/1.6.2/configure.ac
    branches/1.6.2/doc/tex/   (props changed)
    branches/1.6.2/doc/tex/Makefile
    branches/1.6.2/doc/tex/ael.tex
    branches/1.6.2/doc/tex/asterisk.tex
    branches/1.6.2/doc/tex/enum.tex
    branches/1.6.2/doc/tex/localchannel.tex
    branches/1.6.2/doc/tex/phoneprov.tex
    branches/1.6.2/makeopts.in

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/Makefile?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/Makefile (original)
+++ branches/1.6.2/Makefile Wed Apr 21 14:30:18 2010
@@ -964,6 +964,10 @@
 asterisk.pdf:
 	$(MAKE) -C doc/tex asterisk.pdf
 
+txt: asterisk.txt
+asterisk.txt:
+	$(MAKE) -C doc/tex asterisk.txt
+
 .PHONY: menuselect
 .PHONY: main
 .PHONY: sounds

Modified: branches/1.6.2/build_tools/prep_tarball
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/build_tools/prep_tarball?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/build_tools/prep_tarball (original)
+++ branches/1.6.2/build_tools/prep_tarball Wed Apr 21 14:30:18 2010
@@ -15,6 +15,8 @@
     mv asterisk_local.tex asterisk.tex
     rubber --pdf asterisk.tex
     latex2html asterisk.tex
+    latex asterisk.tex
+    catdvi -e 1 -U asterisk.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re "s/\[U\+02C6\]/^/g" | sed -re "s/([^^[:space:]])\s+/\1 /g" > asterisk.txt
     # restore backup of asterisk.tex
     mv asterisk.tex.orig asterisk.tex
 }

Modified: branches/1.6.2/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/configure.ac?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/configure.ac (original)
+++ branches/1.6.2/configure.ac Wed Apr 21 14:30:18 2010
@@ -197,6 +197,7 @@
 AC_PATH_PROG([WGET], [wget], :)
 AC_PATH_PROG([CURL], [curl], :)
 AC_PATH_PROG([RUBBER], [rubber], :)
+AC_PATH_PROG([CATDVI], [catdvi], :)
 AC_PATH_PROG([KPATHSEA], [kpsewhich], :)
 AC_PATH_PROG([XMLSTARLET], [xmlstarlet], :)
 if test "${WGET}" != ":" ; then

Propchange: branches/1.6.2/doc/tex/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Apr 21 14:30:18 2010
@@ -1,0 +1,1 @@
+

Modified: branches/1.6.2/doc/tex/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/Makefile?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/Makefile (original)
+++ branches/1.6.2/doc/tex/Makefile Wed Apr 21 14:30:18 2010
@@ -20,7 +20,7 @@
 	@echo "WARNING:  The fncychap.sty document was not found"
 	@echo "On Ubuntu, install the texlive-latex-extra package."
 	@echo
-	@exit
+	@exit 1
 endif
 endif
 	@cp asterisk.tex asterisk.tex.orig
@@ -44,3 +44,33 @@
 	@latex2html asterisk.tex
 	@mv asterisk.tex.orig asterisk.tex
 
+txt: asterisk.txt
+
+asterisk.txt: $(wildcard *.tex)
+ifeq ($(findstring catdvi,$(CATDVI)),)
+	@echo "**********************************************"
+	@echo "** You must install the \"catdvi\" tool      ***"
+	@echo "** to generate the Asterisk reference TXT. ***"
+	@echo "**********************************************"
+else
+	@echo "**********************************************"
+	@echo "** The Asterisk reference TXT will now be  ***"
+	@echo "** generated.  When complete, it will be   ***"
+	@echo "** located at asterisk.txt.                ***"	
+	@echo "**********************************************"
+ifneq ($(findstring kpsewhich,$(KPATHSEA)),)
+ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$${TEXMF}'| tr -d \! | sed 's/:/ /g'` -name fncychap.sty -print)),)
+	@echo
+	@echo "WARNING:  The fncychap.sty document was not found"
+	@echo "On Ubuntu, install the texlive-latex-extra package."
+	@echo
+	@exit 1
+endif
+endif
+	@cp asterisk.tex asterisk.tex.orig
+	@sed -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex > asterisk_local.tex
+	@mv asterisk_local.tex asterisk.tex
+	@latex asterisk.tex
+	-@$(CATDVI) -e 1 -U asterisk.dvi | sed -re "s/\[U\+2022\]/*/g" | sed -re "s/\[U\+02C6\]/^/g" | sed -re "s/([^^[:space:]])\s+/\1 /g" > asterisk.txt
+	@mv asterisk.tex.orig asterisk.tex
+endif

Modified: branches/1.6.2/doc/tex/ael.tex
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/ael.tex?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/ael.tex (original)
+++ branches/1.6.2/doc/tex/ael.tex Wed Apr 21 14:30:18 2010
@@ -128,7 +128,7 @@
 To reload extensions.ael, the following command can be issued at the
 CLI:
 
-    *CLI> ael reload
+    *CLI$>$ ael reload
 
 \section{Debugging}
 
@@ -735,7 +735,7 @@
 
 NOTE: These things are wrapped up in a \$[ ] expression: The while() test;
 the if() test; the middle expression in the for( x; y; z) statement
-(the y expression); Assignments - the right hand side, so a = b -> Set(a=\$[b])
+(the y expression); Assignments - the right hand side, so a = b -$>$ Set(a=\$[b])
 
 Writing to a dialplan function is treated the same as writing to a variable.
 

Modified: branches/1.6.2/doc/tex/asterisk.tex
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/asterisk.tex?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/asterisk.tex (original)
+++ branches/1.6.2/doc/tex/asterisk.tex Wed Apr 21 14:30:18 2010
@@ -33,6 +33,7 @@
 
 \author{Asterisk Development Team \\ Asterisk.org}
 \title{Asterisk Reference Information \\ Version ASTERISKVERSION}
+=======
 
 \begin{document}
 \maketitle

Modified: branches/1.6.2/doc/tex/enum.tex
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/enum.tex?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/enum.tex (original)
+++ branches/1.6.2/doc/tex/enum.tex Wed Apr 21 14:30:18 2010
@@ -53,7 +53,7 @@
      ALL. Default type is "sip".
      Special name of "ALL" will create a list of method types across
      all NAPTR records for the search number, and then put the results
-     in an ordinal list starting with 1. The position <number>
+     in an ordinal list starting with 1. The position $<$number$>$
      specified will then be returned, starting with 1 as the first
      record (lowest value) in the list.  The service types are not
      hardcoded in Asterisk except for the default (sip) if no other
@@ -75,11 +75,11 @@
   \item record\#
   \begin{itemize}
     \item which record to present if multiple answers are returned
-    <integer> = The record in priority/order sequence based on the
+    $<$integer$>$ = The record in priority/order sequence based on the
     total count of records passed back by the query. If a service\_type
     is specified, all entries of that type will be sorted into an
     ordinal list starting with 1 (by order first, then priority).
-    The default of <options> is "1"
+    The default of $<$options$>$ is "1"
   \end{itemize}
 
   \item zone\_suffix

Modified: branches/1.6.2/doc/tex/localchannel.tex
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/localchannel.tex?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/localchannel.tex (original)
+++ branches/1.6.2/doc/tex/localchannel.tex Wed Apr 21 14:30:18 2010
@@ -383,11 +383,13 @@
 
 This following dialplan will not perform as expected.
 
+\begin{verbatim}
 [services]
 exten => 2,1,Dial(SIP/PHONE\_B,,L(60000:45000:15000))
 
 [internal]
-exten => 4,1,Dial(Local/2 at services);
+exten => 4,1,Dial(Local/2 at services)
+\end{verbatim}
 
 By default, the Local channel will try to optimize itself out of the call path.
 This means that once the Local channel has established the call between the

Modified: branches/1.6.2/doc/tex/phoneprov.tex
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/doc/tex/phoneprov.tex?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/doc/tex/phoneprov.tex (original)
+++ branches/1.6.2/doc/tex/phoneprov.tex Wed Apr 21 14:30:18 2010
@@ -79,7 +79,7 @@
 
 Since phone-specific config files generally have file names based on phone-specifc data, 
 dynamic filenames in res\_phoneprov can be defined with Asterisk dialplan function and 
-variable substitution. In the above example, \$\{TOLOWER(\$\{MAC\})\}.cfg $\Rightarrow$ 
+variable substitution. In the above example, \$\{TOLOWER(\$\{MAC\})\}.cfg =$>$
 000000000000.cfg would define a relative URI to be served that matches the format of 
 MACADDRESS.cfg, all lower case. A request for that file would then point to the template 
 found at AST\_DATA\_DIR/phoneprov/000000000000.cfg. The template can be followed by a 
@@ -96,8 +96,8 @@
 dynamic filename.
 
 NOTE: Any dialplan function that is used for generation of dynamic file names MUST be 
-loaded before res\_phoneprov. Add "preload $\Rightarrow$ modulename.so" to 
-\path{modules.conf} for required functions. In the example above, "preload $\Rightarrow$ 
+loaded before res\_phoneprov. Add "preload =$>$ modulename.so" to 
+\path{modules.conf} for required functions. In the example above, "preload =$>$
 func\_strings.so" would be required.
 
 \section{Configuration of users.conf}

Modified: branches/1.6.2/makeopts.in
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/makeopts.in?view=diff&rev=258384&r1=258383&r2=258384
==============================================================================
--- branches/1.6.2/makeopts.in (original)
+++ branches/1.6.2/makeopts.in Wed Apr 21 14:30:18 2010
@@ -25,6 +25,7 @@
 FETCH=@FETCH@
 DOWNLOAD=@DOWNLOAD@
 RUBBER=@RUBBER@
+CATDVI=@CATDVI@
 KPATHSEA=@KPATHSEA@
 XMLSTARLET=@XMLSTARLET@
 MD5=@MD5@




More information about the svn-commits mailing list