Sync with FreeBSD. This adds read-only support for zip and ISO9660.
[dragonfly.git] / contrib / nvi / build / distrib
1 #! /bin/sh
2 # @(#)distrib   8.11 (Berkeley) 10/23/96
3
4 # Clean
5 #make -f Makefile.in clean
6 #rm -f configure config.h.in
7
8 # Build autoconf structure.
9 echo "Running autoheader"
10 autoheader 2>&1 | sed '/warning: AC_TRY_RUN called without default/d'
11 chmod 444 config.h.in
12 echo "Running autoconf"
13 autoconf 2>&1 | sed '/warning: AC_TRY_RUN called without default/d'
14 chmod 555 configure config.guess config.sub install-sh
15
16 # Build include files.
17 f=../include/cl_extern.h
18 echo "Building $f"
19 rm -f $f
20 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../cl/*.c > $f
21 chmod 444 $f
22
23 f=../include/com_extern.h
24 echo "Building $f"
25 rm -f $f
26 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../clib/*.c ../common/*.c > $f
27 chmod 444 $f
28
29 f=../include/ex_def.h
30 echo "Building $f"
31 rm -f $f
32 awk -f ../ex/ex.awk ../ex/ex_cmd.c > $f
33 chmod 444 $f
34
35 f=../include/ex_extern.h
36 echo "Building $f"
37 rm -f $f
38 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../ex/*.c > $f
39 chmod 444 $f
40
41 if [ -d ../ip ]; then
42         f=../include/ip_extern.h
43         echo "Building $f"
44         rm -f $f
45         sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../ip/*.c > $f
46         chmod 444 $f
47 fi
48
49 f=../include/options_def.h
50 echo "Building $f"
51 rm -f $f
52 awk -f ../common/options.awk ../common/options.c > $f
53 chmod 444 $f
54
55 f=../include/perl_extern.h
56 echo "Building $f"
57 rm -f $f
58 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../perl_api/*.xs ../perl_api/*.c > $f
59 chmod 444 $f
60
61 f=../include/tcl_extern.h
62 echo "Building $f"
63 rm -f $f
64 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../tcl_api/*.c > $f
65 chmod 444 $f
66
67 f=../include/tk_extern.h
68 echo "Building $f"
69 rm -f $f
70 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../tk/*.c > $f
71 chmod 444 $f
72
73 f=../include/vi_extern.h
74 echo "Building $f"
75 rm -f $f
76 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../vi/*.c > $f
77 chmod 444 $f
78
79 # Build tags files.
80 echo "Building tags files"
81 rm -f tags
82 ctags -w -d ../cl/*.[ch] ../common/*.[ch] ../ex/*.[ch] ../perl_api/*.[ch] \
83     ../tcl_api/*.[ch] ../tk/*.[ch] ../vi/*.[ch]
84 chmod 444 tags