fc033fd6729ae5415c2f2b86a20c86826b05566f
[mdsms.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 # $Id$
5 #
6 # $Log$
7 # Revision 1.1.1.1  1999/05/26 13:06:26  short
8 # First alpha release.
9 #
10
11 CONFDEFS="--enable-maintainer-mode --enable-debug"
12
13 if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
14 VER="`sed <configure.in -n 's/^AM_INIT_AUTOMAKE(.*, *\([^ ]*\) *)$/\1/p'`"
15 echo "Detected version: $VER"
16 rm -r -f \
17         install-sh \
18         mkinstalldirs \
19         missing \
20         INSTALL \
21         COPYING \
22         Makefile \
23         Makefile.in \
24         configure \
25         configure.scan \
26         config.guess \
27         config.status \
28         config.sub \
29         config.log \
30         config.h \
31         autoh[0-9]* \
32         config.cache \
33         config.h.in \
34         stamp-h \
35         stamp-h.in \
36         aclocal.m4 \
37         getopt.c \
38         getopt.h \
39         getopt1.c \
40         mdsms-$VER.tar.gz \
41         manfmt \
42         .deps \
43         ChangeLog \
44
45
46 if [ "$1" = clean ];then exit;fi
47
48 cp ../getopt/getopt{1.c,.{c,h}} .
49 aclocal
50 autoheader
51 touch ChangeLog
52 automake --gnu -c --add-missing
53 #--include-deps
54 rm -f ChangeLog
55 cp ../LGPL2.1 COPYING
56 autoheader
57 autoconf
58
59 if [ "$1" != dist ];then ./configure $CONFDEFS;fi