1 | #!/bin/sh |
---|
2 | infiles=$@ |
---|
3 | trap 'rm -f $infiles; exit 1' 1 3 15 |
---|
4 | |
---|
5 | # echo "" |
---|
6 | for infile in $infiles |
---|
7 | do |
---|
8 | case $infile in |
---|
9 | *.h) |
---|
10 | cb="/*"; cs=" *"; ce=" */";; |
---|
11 | *.1|*.5|*.8|*.man) |
---|
12 | cb=.\\\"; cs=.\\\"; ce=.\\\";; |
---|
13 | *) |
---|
14 | cb="#"; cs="#"; ce="#";; |
---|
15 | esac |
---|
16 | echo "$cb" > $infile |
---|
17 | echo "$cs Generated automatically from $infile.in by the" >> $infile |
---|
18 | echo "$cs configure script." >> $infile |
---|
19 | echo "$ce" >> $infile |
---|
20 | echo "Creating $infile from $infile.in" |
---|
21 | sed -e ' |
---|
22 | s,@version@,man-1.6e, |
---|
23 | s,@CC@,gcc -O, |
---|
24 | s,@BUILD_CC@,gcc -O, |
---|
25 | s,@INSTALL@,install, |
---|
26 | s,@DEFS@, -DSTDC_HEADERS -DTERMIOS_HEADER -DPOSIX -DDO_COMPRESS, |
---|
27 | s,@LIBS@,, |
---|
28 | s,@LIBOBJS@,, |
---|
29 | s,@troff@,/usr/bin/groff -Tps -mandoc -c, |
---|
30 | s,@nroff@,/usr/bin/groff -Wall -mtty-char -Tascii -mandoc -c, |
---|
31 | s,@jnroff@,/usr/bin/groff -Tnippon -mandocj -c, |
---|
32 | s,@eqn@,/usr/bin/eqn -Tps, |
---|
33 | s,@neqn@,/usr/bin/eqn -Tascii, |
---|
34 | s,@jneqn@,/usr/bin/eqn -Tnippon, |
---|
35 | s,@tbl@,/usr/bin/tbl, |
---|
36 | s,@nocol@,# , |
---|
37 | s,@pcol@,, |
---|
38 | s,@col@,/usr/bin/col, |
---|
39 | s,@vgrind@,/usr/bin/vgrind, |
---|
40 | s,@refer@,/usr/bin/refer, |
---|
41 | s,@grap@,, |
---|
42 | s,@pic@,/usr/bin/pic, |
---|
43 | s,@fcat@,, |
---|
44 | s,@pcat@,, |
---|
45 | s,@zcat@,/usr/bin/zcat, |
---|
46 | s,@gunzip@,/usr/bin/gunzip -c, |
---|
47 | s,@bzip2@,/usr/bin/bzip2 -c -d, |
---|
48 | s,@unyabba@,, |
---|
49 | s,@compress@,/usr/bin/bzip2, |
---|
50 | s,@compress_ext@,.bz2, |
---|
51 | s,@decompress@,/usr/bin/bzip2 -c -d, |
---|
52 | s,@pager@,/usr/bin/less -is, |
---|
53 | s,@browser@,/opt/local/bin/lynx, |
---|
54 | s,@htmlpager@,/opt/local/bin/lynx -dump, |
---|
55 | s,@cmp@,/usr/bin/cmp -s, |
---|
56 | s,@cat@,/bin/cat, |
---|
57 | s,@awk@,/usr/bin/awk, |
---|
58 | s,@bindir@,/opt/local/bin, |
---|
59 | s,@sbindir@,/opt/local/sbin, |
---|
60 | s,@mandir@,/opt/local/share/man, |
---|
61 | s,@locale@,/opt/local/share/locale, |
---|
62 | s,@fhs@,, |
---|
63 | s,@fsstnd@,# , |
---|
64 | s,@man1ext@,1,g |
---|
65 | s,@man5ext@,5,g |
---|
66 | s,@man8ext@,8,g |
---|
67 | s,@man_install_flags@,, |
---|
68 | s,@man_user@,, |
---|
69 | s,@languages@,??, |
---|
70 | s,@man@,/opt/local/bin/man, |
---|
71 | s,@apropos@,/opt/local/bin/apropos, |
---|
72 | s,@whatis@,/opt/local/bin/whatis, |
---|
73 | s,@man2dvi@,/opt/local/bin/man2dvi, |
---|
74 | s,@makewhatis@,/opt/local/sbin/makewhatis, |
---|
75 | s,@man_config_dir@,/opt/local/etc, |
---|
76 | s,@man_config_file@,/opt/local/etc/man.conf, |
---|
77 | s,@manpathoption@,--path, |
---|
78 | s/@sections@/1:1p:8:2:3:3p:4:5:6:7:9:0p:tcl:n:l:p:o/ |
---|
79 | ' $infile.in >> $infile |
---|
80 | done |
---|