Blame autoinit.sh

Packit 8a864e
#!/bin/sh
Packit 8a864e
#
Packit 8a864e
# $Id: autoinit.sh,v 1.1.2.2 2005/12/09 04:00:57 neilroeth Exp $
Packit 8a864e
#
Packit 8a864e
# autoinit.sh - part of build system for C/C++ Unix/X11 programs
Packit 8a864e
# Copyright (C) 1999 Hans Ulrich Niedermann
Packit 8a864e
#
Packit 8a864e
# This program is free software; you can redistribute it and/or modify
Packit 8a864e
# it under the terms of the GNU General Public License as published by
Packit 8a864e
# the Free Software Foundation; either version 2 of the License, or
Packit 8a864e
# (at your option) any later version.
Packit 8a864e
#
Packit 8a864e
# This program is distributed in the hope that it will be useful,
Packit 8a864e
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8a864e
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 8a864e
# GNU General Public License for more details.
Packit 8a864e
#
Packit 8a864e
# You should have received a copy of the GNU General Public License
Packit 8a864e
# along with this program; if not, write to the Free Software
Packit 8a864e
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Packit 8a864e
Packit 8a864e
basename="$(basename "$0" || echo "$0")"
Packit 8a864e
Packit 8a864e
for command in aclocal autoheader libtoolize "automake --add-missing" autoconf; do
Packit 8a864e
    echo "$basename: Executing \"${command}\""
Packit 8a864e
    ${command}
Packit 8a864e
    status=$?
Packit 8a864e
    if test $status -ne 0; then
Packit 8a864e
	echo "$basename: Execution of \"${command}\" failed (exit status ${status})"
Packit 8a864e
	echo "$basename: aborted (exit status ${status})"
Packit 8a864e
	exit ${status}
Packit 8a864e
    fi
Packit 8a864e
done
Packit 8a864e
Packit 8a864e
configure="$(dirname "$0" || echo "<source-dir>")/configure"
Packit 8a864e
echo "$basename: You probably want to run \"$configure\" now."
Packit 8a864e
echo "$basename: See \"$configure --help\" for help \"$configure\" options"