checkpoint
[nvi.git] / dist / distrib
blob9ee551a632dd5288e2bea763b548e0c9b4c56337
1 #! /bin/sh
2 # $Id: distrib,v 8.17 1996/12/18 10:32:05 bostic Exp $ (Berkeley) $Date: 1996/12/18 10:32:05 $
4 # Clean
5 #make -f Makefile.in clean
6 #rm -f configure config.h.in
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
16 msg="/* Do not edit: automatically built by build/distrib. */"
17 # Build include files.
18 f=../cl/extern.h
19 echo "Building $f"
20 rm -f $f
21 (echo "$msg" && \
22 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../cl/*.c) > $f
23 chmod 444 $f
25 f=../common/extern.h
26 echo "Building $f"
27 rm -f $f
28 (echo "$msg" && \
29 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../clib/*.c ../common/*.c) > $f
30 chmod 444 $f
32 f=../ex/ex_def.h
33 echo "Building $f"
34 rm -f $f
35 (echo "$msg" && \
36 awk -f ../ex/ex.awk ../ex/ex_cmd.c) > $f
37 chmod 444 $f
39 f=../ex/extern.h
40 echo "Building $f"
41 rm -f $f
42 (echo "$msg" && \
43 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../ex/*.c) > $f
44 chmod 444 $f
46 f=../ip/extern.h
47 echo "Building $f"
48 rm -f $f
49 (echo "$msg" && \
50 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../ip/*.c) > $f
51 chmod 444 $f
53 f=../ipc/extern.h
54 echo "Building $f"
55 rm -f $f
56 (echo "$msg" && \
57 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../ipc/*.c) > $f
58 chmod 444 $f
60 f=../motif/extern.h
61 echo "Building $f"
62 rm -f $f
63 (echo "$msg" && \
64 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../motif/*.c) > $f
65 chmod 444 $f
67 f=../motif_l/extern.h
68 echo "Building $f"
69 rm -f $f
70 (echo "$msg" && \
71 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../motif_l/*.c) > $f
72 chmod 444 $f
74 f=../common/options_def.h
75 echo "Building $f"
76 rm -f $f
77 (echo "$msg" && \
78 awk -f ../common/options.awk ../common/options.c) > $f
79 chmod 444 $f
81 f=../perl_api/extern.h
82 echo "Building $f"
83 rm -f $f
84 (echo "$msg" && \
85 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../perl_api/*.xs ../perl_api/*.c) > $f
86 chmod 444 $f
88 f=../tcl_api/extern.h
89 echo "Building $f"
90 rm -f $f
91 (echo "$msg" && \
92 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../tcl_api/*.c) > $f
93 chmod 444 $f
95 f=../vi/extern.h
96 echo "Building $f"
97 rm -f $f
98 (echo "$msg" && \
99 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ../vi/*.c) > $f
100 chmod 444 $f
102 # Build tags files.
103 echo "Building tags files"
104 rm -f tags
105 ctags -w -d ../cl/*.[ch] ../common/*.[ch] ../ex/*.[ch] \
106 ../perl_api/*.[ch] ../tcl_api/*.[ch] \
107 ../ip/*.[ch] ../ipc/*.[ch] ../motif_l/*.[ch] ../vi/*.[ch]
108 chmod 444 tags