X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=autogen.sh;h=4a780a4f3c58efd1342e6a601e9eb084b5571f43;hb=87bcf29364c4640edb87cc2186b965d1a564d70c;hp=0e9d52a5682f439afa4881d61c74b27615a5c39b;hpb=64236f908d1d76f07512288e37760b1c5435f757;p=~andy%2Ffetchmail diff --git a/autogen.sh b/autogen.sh index 0e9d52a5..4a780a4f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,42 +1,27 @@ -#!/bin/sh -# -# autogen.sh glue for fetchmail -# $Id: autogen.sh,v 1.1 2001/05/12 08:03:50 esr Exp $ -# -set -e - -# -# Refresh GNU gettext, but do not allow symlinks -# -rm -f po/Makefile.in.in po/ChangeLog po/ChangeLog~ || true -gettextize -c -f || true +#! /bin/sh -# The idea is that we make sure we're always using an up-to-date -# version of all the auto* script chain for the build. The GNU autotools -# are rather badly designed in that area. +# autogen.sh - bootstrap the fetchmail build after a fresh git checkout +# (C) 2004, 2010 Matthias Andree -- GNU GPL V2 or newer -aclocal -autoheader -#automake --verbose --foreign --add-missing +set -e -#we don't use symlinks because of debian's build system, -#but they would be a better choice. -for i in config.guess config.sub missing install-sh mkinstalldirs ; do - test -r /usr/share/automake/${i} && cp -f /usr/share/automake/${i} . - chmod 755 ${i} -done +# sanity checks: +test -f fetchmail.h +test -f fetchmail.c +test -f Makefile.am -autoconf +# kill junk: +rm -rf autom4te.cache -# -# For the Debian build, refresh list of +x scripts, to avoid -# possible breakage if upstream tarball does not include the file -# or if it is mispackaged for whatever reason -# +echo +echo "Please stand by while generating files," +echo "this may take a minute or two..." +echo -test -d debian && { - rm -f debian/executable.files - find -type f -perm +111 ! -name '.*' -fprint debian/executable.files -} +# do not use -s here, Eric S. Raymond (ESR) writes they don't +# work well in Debian's build system +${AUTORECONF:=autoreconf} -iv -exit 0 +echo +echo "You can now run ./configure and make as usual. See INSTALL for details." +echo