File: printdoc.bat

package info (click to toggle)
elvis 2.1i-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 4,120 kB
  • ctags: 5,838
  • sloc: ansic: 53,854; sh: 811; makefile: 263
file content (43 lines) | stat: -rw-r--r-- 1,191 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
echo 
echo  This little script will print the documentation.  It does this by invoking
echo  elvis on each documentation file in turn, telling elvis to print the file
echo  via its :lpr command and then quit.  The complete manual should be about
echo  200 pages long.
echo  
echo  	THIS ASSUMES YOU HAVE ALREADY SET UP THE PRINTING OPTIONS!
echo 
echo -n "Are you sure you wish to proceed? [Y/n] "
read ans

if [ $ans != "Y" ] ; then
       echo 
       exit 1
fi
echo printing...
echo

cd /usr/doc/elvis/

elvis -Gquit -clp elvis.html
elvis -Gquit -clp elvisvi.html
elvis -Gquit -clp elvisinp.html
elvis -Gquit -clp elvisex.html
elvis -Gquit -clp elvisre.html
elvis -Gquit -clp elvisopt.html
elvis -Gquit -clp elvisdm.html
elvis -Gquit -clp elvisgui.html
elvis -Gquit -clp elvisos.html
elvis -Gquit -clp elvisses.html
elvis -Gquit -clp elviscut.html
elvis -Gquit -clp elvismsg.html
elvis -Gquit -clp elvisexp.html
elvis -Gquit -clp elvistag.html
elvis -Gquit -clp elvisnet.html
elvis -Gquit -clp elvistip.html
elvis -Gquit -clp elvistrs.msg
elvis -Gquit -clp elvisqr.html
elvis -Gquit -clp elvis.man
elvis -Gquit -clp ctags.man
elvis -Gquit -clp ref.man
elvis -Gquit -clp fmt.man