c_addrcodec(): CID 1549184 (not on [next])
[s-mailx.git] / mk / make-rc.sh
blob303dc9fe0fdad4edd0bea6f6d3ba58e6befb37e4
1 #!/bin/sh -
2 #@ Adjust rc file 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 /^#--MKRC-START--/,/^#--MKRC-END--/{
14 if(written == 1)
15 next
16 written = 1
17 OFS = ""
18 ln = tolower(ENVIRON["VAL_UAGENT"])
19 cn = toupper(substr(ln, 1, 1)) substr(ln, 2)
20 print "#@ ", ENVIRON["VAL_SYSCONFDIR"], "/", ENVIRON["VAL_SYSCONFRC"]
21 print "#@ Configuration file for ", cn, " v", ENVIRON["VERSION"], "."
22 OFS = " "
23 next
25 {print}
28 # s-sh-mode