(failed ?) attempt at cleaner ip interface
[nvi.git] / dist / distrib
blobd88afb715e2a7731a58191bd0b54b0f27dc18abe
1 #! /bin/sh
2 # $Id: distrib,v 8.19 2000/07/05 11:33:16 skimo Exp $ (Berkeley) $Date: 2000/07/05 11:33:16 $
4 # Build autoconf structure.
5 echo "Running autoheader"
6 autoheader 2>&1 | sed '/warning: AC_TRY_RUN called without default/d'
7 chmod 444 config.h.in
8 rm -f configure
9 echo "Running autoconf"
10 autoconf 2>&1 | sed '/warning: AC_TRY_RUN called without default/d'
11 chmod 555 configure config.guess config.sub install-sh
13 msg="/* Do not edit: automatically built by build/distrib. */"
14 # Build automatically generated header files.
15 f=../ipc/ipc_def.h
16 echo "Building $f"
17 rm -f $f
18 (echo "$msg" && \
19 awk -f ../ipc/ipc.awk ../ipc/ipc_cmd.c &&
20 awk -f ../ipc/vipc.awk ../ip/ip_read.c) > $f
21 chmod 444 $f
23 f=../ipc/ipc_gen.c
24 echo "Building $f"
25 rm -f $f
26 (echo "$msg" && \
27 perl -n ../ip/vipc.pl ../ip/ip_read.c) > $f
28 chmod 444 $f
30 f=../ex/ex_def.h
31 echo "Building $f"
32 rm -f $f
33 (echo "$msg" && \
34 awk -f ../ex/ex.awk ../ex/ex_cmd.c) > $f
35 chmod 444 $f
37 f=../common/options_def.h
38 echo "Building $f"
39 rm -f $f
40 (echo "$msg" && \
41 awk -f ../common/options.awk ../common/options.c) > $f
42 chmod 444 $f
44 # Build the automatically generated function prototype files.
45 for i in cl common ex ip ipc motif motif_l perl_api tcl_api vi; do
46 f=../$i/extern.h
47 rm -f $f
48 echo "Building $f"
49 (echo "$msg" && \
50 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../$i/*.c) > $f
51 chmod 444 $f
52 done
54 # Build tags files.
55 echo "Building tags files"
56 f=tags
57 rm -f $f
58 if test $USER = 'bostic'; then ctagsopt = '-d'; fi
59 ctags $ctagsopt -w \
60 ../cl/*.[ch] ../common/*.[ch] ../ex/*.[ch] ../ip/*.[ch] \
61 ../ipc/*.[ch] ../motif/*.[ch] ../motif_l/*.[ch] ../perl_api/*.[ch] \
62 ../tcl_api/*.[ch] ../vi/*.[ch]
63 chmod 444 $f