Minor hack
[apertium.git] / apertium-oc-es / autogen.sh
blob4cae0a05f0f037e841ddbf43df2bd0f0b9da7704
1 #! /bin/sh
3 # $Id: autogen.sh,v 1.1 2006/07/19 15:20:33 sortiz Exp $
5 # Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License VERSION 2 as
9 # published by the Free Software Foundation. You are not allowed to
10 # use any other version of the license; unless you got the explicit
11 # permission from the author to do so.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 dir=`echo "$0" | sed 's,[^/]*$,,'`
24 test "x${dir}" = "x" && dir='.'
26 if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
27 then
28 echo "This script must be executed directly from the source directory."
29 exit 1
32 rm -f config.cache acconfig.h
34 echo "- aclocal." && \
35 aclocal-1.9 && \
36 echo "- autoconf." && \
37 autoconf && \
38 echo "- autoheader." && \
39 autoheader && \
40 echo "- automake." && \
41 automake-1.9 --add-missing --gnu && \
42 echo && \
43 ./configure "$@" && exit 0
45 exit 1