Id: line filtering to preprocess man page on SunOS cleanly.
[mdsms.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # $Id$
5
6 CONFDEFS="--enable-maintainer-mode --enable-debug"
7
8 # if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
9 rm -r -f \
10         install-sh \
11         mkinstalldirs \
12         missing \
13         INSTALL \
14         COPYING \
15         Makefile \
16         Makefile.in \
17         configure \
18         configure.scan \
19         config.guess \
20         config.status \
21         config.sub \
22         config.log \
23         config.h \
24         autoh[0-9]* \
25         config.cache \
26         config.h.in \
27         stamp-h \
28         stamp-h.in \
29         aclocal.m4 \
30         getopt.c \
31         getopt.h \
32         getopt1.c \
33         mdsms.1.inid \
34         sms9110 \
35         sms9110.1 \
36         sms9110-[0-9]*.tar.gz \
37         sms9110-[0-9]*.tar.Z \
38         manfmt \
39         .deps \
40         ChangeLog \
41         *.o \
42
43
44 if [ "$1" = clean ];then exit;fi
45
46 cp ../getopt/getopt{1.c,.{c,h}} .
47 aclocal -I .
48 autoheader
49 touch ChangeLog
50 automake --gnu -c --add-missing
51 #--include-deps
52 rm -f ChangeLog
53 cp ../LGPL2.1 COPYING
54 autoheader
55 autoconf
56
57 if [ "$1" != dist ];then ./configure $CONFDEFS;fi