Ticket #11731: conf_script.orig

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