mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			26 lines
		
	
	
		
			961 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			961 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh -e
 | 
						|
 | 
						|
# This script will be executed by the 'mkrelease' script to do any tasks
 | 
						|
# necessary during tarball creation of this project.
 | 
						|
#
 | 
						|
# It will be executed from the top-level directory of the project.
 | 
						|
 | 
						|
make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
 | 
						|
make AWK=awk GREP=grep menuselect-tree
 | 
						|
 | 
						|
make_tex_docs() {
 | 
						|
    # make backup of asterisk.tex because we are going to alter it
 | 
						|
    cp asterisk.tex asterisk.tex.orig
 | 
						|
    sed -e "s/ASTERISKVERSION/${VERSION}/" asterisk.tex > asterisk_local.tex
 | 
						|
    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
 | 
						|
}
 | 
						|
 | 
						|
VERSION=`cat .version`
 | 
						|
cd doc/tex && make_tex_docs
 |