2 # $Id: distrib,v 8.24 2001/06/25 11:20:24 skimo Exp $ (Berkeley) $Date: 2001/06/25 11:20:24 $
4 echo "Running libtoolize"
7 echo "Building aclocal.m4"
11 # Build autoconf structure.
12 echo "Running autoheader"
13 autoheader
2>&1 |
sed '/warning: AC_TRY_RUN called without default/d'
15 echo "Running automake"
16 automake
-a -c --foreign $@
18 echo "Running autoconf"
19 autoconf
2>&1 |
sed '/warning: AC_TRY_RUN called without default/d'
20 chmod 555 configure config.guess config.sub install-sh
22 msg
="/* Do not edit: automatically built by build/distrib. */"
23 # Build automatically generated header files.
28 awk -f ..
/ipc
/ipc.
awk ..
/ipc
/ipc_cmd.c
&&
29 awk -f ..
/ipc
/vipc.
awk ..
/ip
/ip_read.c
) > $f
36 perl
-n ..
/ip
/vipc.pl ..
/ip
/ip_read.c
) > $f
43 awk -f ..
/ex
/ex.
awk ..
/ex
/ex_cmd.c
) > $f
46 f
=..
/common
/options_def.h
50 awk -f ..
/common
/options.
awk ..
/common
/options.c
) > $f
53 # Build the automatically generated function prototype files.
54 for i
in cl common ex gtk ip ipc motif motif_l tcl_api vi
; do
59 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ..
/$i/*.c
) > $f
63 # Build the automatically generated function prototype files.
64 for i
in perl_api
; do
69 sed -n "s/^ \* PUBLIC: \(.*\)/\1/p" ..
/$i/*.c ..
/$i/*.xs
) > $f
74 echo "Building tags files"
77 if test $USER = 'bostic'; then ctagsopt
= '-d'; fi
79 ..
/cl
/*.
[ch
] ..
/common
/*.
[ch
] ..
/ex
/*.
[ch
] ..
/gtk
/*.
[ch
] ..
/ip
/*.
[ch
] \
80 ..
/ipc
/*.
[ch
] ..
/motif
/*.
[ch
] ..
/motif_l
/*.
[ch
] ..
/perl_api
/*.
[ch
] \
81 ..
/tcl_api
/*.
[ch
] ..
/vi
/*.
[ch
]
85 echo "Building ../ex/version.h"
86 echo '#define VI_VERSION "'`git-describe` '('$date')"' > ..
/ex
/version.h