Removed '\xXY' chars for compatibility with Digital UNIX vendor "cc".
[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.2  1999/06/02 18:26:32  short
8 # Makefile target dist-tarZ added for 'compress'-ed archives.
9 #
10 # Revision 1.1.1.1  1999/05/26 13:06:26  short
11 # First alpha release.
12 #
13
14 CONFDEFS="--enable-maintainer-mode --enable-debug"
15
16 if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
17 VER="`sed <configure.in -n 's/^AM_INIT_AUTOMAKE(.*, *\([^ ]*\) *)$/\1/p'`"
18 echo "Detected version: $VER"
19 rm -r -f \
20         install-sh \
21         mkinstalldirs \
22         missing \
23         INSTALL \
24         COPYING \
25         Makefile \
26         Makefile.in \
27         configure \
28         configure.scan \
29         config.guess \
30         config.status \
31         config.sub \
32         config.log \
33         config.h \
34         autoh[0-9]* \
35         config.cache \
36         config.h.in \
37         stamp-h \
38         stamp-h.in \
39         aclocal.m4 \
40         getopt.c \
41         getopt.h \
42         getopt1.c \
43         mdsms-$VER.tar.gz \
44         mdsms-$VER.tar.Z \
45         manfmt \
46         .deps \
47         ChangeLog \
48
49
50 if [ "$1" = clean ];then exit;fi
51
52 cp ../getopt/getopt{1.c,.{c,h}} .
53 aclocal
54 autoheader
55 touch ChangeLog
56 automake --gnu -c --add-missing
57 #--include-deps
58 rm -f ChangeLog
59 cp ../LGPL2.1 COPYING
60 autoheader
61 autoconf
62
63 if [ "$1" != dist ];then ./configure $CONFDEFS;fi