lintian doesn't like orphan packages with uploaders...
[debian/amanda] / autogen
1 #! /bin/sh
2
3 # cd to the directory we're run from
4 cd `dirname $0`
5
6 # if you change this, please also change it in the root Makefile.am
7 includes="-I . -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive"
8
9 # clean up
10 rm -f aclocal.m4
11 rm -rf autom4te*.cache
12 rm -f configure
13
14 die() {
15     echo x"${@}" | sed 's/^x//'
16     exit 1
17 }
18
19 echo "See DEVELOPING for instructions on updating:"
20 echo " * gettext macros"
21 echo " * gnulib"
22 echo " * libtool files"
23
24 echo "..creating file lists"
25 (   cd config
26     for m4dir in amanda gettext-macros gnulib macro-archive; do
27         echo "## this file is automatically generated by autogen" > "$m4dir/file-list"
28         for f in $m4dir/*.m4; do echo "EXTRA_DIST += $f" >> "$m4dir/file-list"; done
29     done
30
31     echo "## this file is automatically generated by autogen" > "automake/file-list"
32     for f in automake/*.am; do echo "EXTRA_DIST += $f" >> "automake/file-list"; done
33 )
34
35 #set the FULL_VERSION file
36 config/set_full_version
37
38 echo "..aclocal"
39 aclocal $includes || die "aclocal failed"
40
41 echo "...aclocal patches"
42 # See http://bugzilla.gnome.org/show_bug.cgi?id=418778
43 #
44 # The Glib developers are a bit over-eager in their version requirements, requiring
45 # an unnecessarily high verison of pkg-config at configure time, when they really
46 # only need it at autogen time.  This patch resets the version number in the file
47 # just generated by aclocal to the version we've been requiring all along.
48 sed -e  \
49      's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.7])/g' \
50      aclocal.m4 > aclocal.m4~ && mv aclocal.m4~ aclocal.m4
51
52 echo "..autoconf"
53 autoconf || die "autoconf failed"
54
55 echo "..autoheader"
56 autoheader || die "autoheader failed"
57 touch config/config.h.in
58
59 echo "..automake"
60 automake --force --copy --warnings=none || die "automake failed"