MLE:a_tty_readline(): FIX possible buffer-overflow with HAVE_KEY_BINDINGS..
[s-mailx.git] / mk / make-man.sh
blob716db644cefbaf6a6327e23d4945cebfb0957805
1 #!/bin/sh -
2 #@ Adjust manual according to configuration settings (sourced in environment).
4 # Public Domain
6 LC_ALL=C
8 VERSION=`${SHELL} "${TOPDIR}"mk/make-version.sh query`
9 export VERSION
11 < "$1" > "$2" exec ${awk} '
12 BEGIN {written = 0}
13 /\.\\"--MKMAN-START--/,/\.\\"--MKMAN-END--/{
14 if(written++ != 0)
15 next
16 OFS = ""
17 print ".ds VV \\\\%v", ENVIRON["VERSION"]
19 un = toupper(ENVIRON["VAL_UAGENT"])
20 ln = tolower(un)
21 cn = toupper(substr(ln, 1, 1)) substr(ln, 2)
22 print ".ds UU \\\\%", un
23 print ".ds UA \\\\%", cn
24 print ".ds uA \\\\%", ln
25 path = ENVIRON["VAL_SYSCONFRC"]
26 gsub("/", "/\\:", path)
27 print ".ds UR \\\\%", path
28 path = ENVIRON["VAL_MAILRC"]
29 gsub("/", "/\\:", path)
30 print ".ds ur \\\\%", path
32 path = ENVIRON["VAL_DEAD"]
33 gsub("/", "/\\:", path)
34 print ".ds VD \\\\%", path
35 path = ENVIRON["VAL_MBOX"]
36 gsub("/", "/\\:", path)
37 print ".ds VM \\\\%", path
38 path = ENVIRON["VAL_NETRC"]
39 gsub("/", "/\\:", path)
40 print ".ds VN \\\\%", path
41 path = ENVIRON["VAL_TMPDIR"]
42 gsub("/", "/\\:", path)
43 print ".ds VT \\\\%", path
45 path = ENVIRON["VAL_MIME_TYPES_SYS"]
46 gsub("/", "/\\:", path)
47 print ".ds vS \\\\%", path
48 path = ENVIRON["VAL_MIME_TYPES_USR"]
49 gsub("/", "/\\:", path)
50 print ".ds vU \\\\%", path
52 OFS = " "
53 next
55 {print}
58 # s-sh-mode