summaryrefslogtreecommitdiff
path: root/legacy/ecore/autogen.sh
diff options
context:
space:
mode:
authorTill Adam <tillsan@users.sourceforge.net>2002-03-21 10:02:25 +0000
committerTill Adam <tillsan@users.sourceforge.net>2002-03-21 10:02:25 +0000
commita2ea45fcd63b90420ecba72cfd848859abf06b3b (patch)
tree8893243088e500b5e6ee3425bc885e917f1c2b00 /legacy/ecore/autogen.sh
parentbd21ee5da54fa5fa40aa5506703eafd8c09fcad5 (diff)
fixes for autogen.sh script by Michi Thalmann <th@lmann.ch>.
SVN revision: 6082
Diffstat (limited to '')
-rwxr-xr-xlegacy/ecore/autogen.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/legacy/ecore/autogen.sh b/legacy/ecore/autogen.sh
index 9370100750..417ad102e2 100755
--- a/legacy/ecore/autogen.sh
+++ b/legacy/ecore/autogen.sh
@@ -1,6 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2# Run this to generate all the initial makefiles, etc. 2# Run this to generate all the initial makefiles, etc.
3 3
4abort () {
5 echo "$1 not found or command failed. Aborting!"
6 exit 1
7}
8
4srcdir=`dirname $0` 9srcdir=`dirname $0`
5PKG_NAME="libecore" 10PKG_NAME="libecore"
6 11
@@ -106,7 +111,7 @@ do
106 echo "Creating $dr/aclocal.m4 ..." 111 echo "Creating $dr/aclocal.m4 ..."
107 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 112 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
108 echo "Running gettextize... Ignore non-fatal messages." 113 echo "Running gettextize... Ignore non-fatal messages."
109 echo "no" | gettextize --force --copy 114 echo "no" | gettextize --force --copy || abort "gettextize"
110 echo "Making $dr/aclocal.m4 writable ..." 115 echo "Making $dr/aclocal.m4 writable ..."
111 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 116 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
112 fi 117 fi
@@ -115,24 +120,24 @@ do
115 echo "Creating $dr/aclocal.m4 ..." 120 echo "Creating $dr/aclocal.m4 ..."
116 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 121 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
117 echo "Running gettextize... Ignore non-fatal messages." 122 echo "Running gettextize... Ignore non-fatal messages."
118 echo "no" | gettextize --force --copy 123 echo "no" | gettextize --force --copy || abort "gettextize"
119 echo "Making $dr/aclocal.m4 writable ..." 124 echo "Making $dr/aclocal.m4 writable ..."
120 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 125 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
121 fi 126 fi
122 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then 127 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
123 echo "Running libtoolize..." 128 echo "Running libtoolize..."
124 libtoolize --force --copy 129 libtoolize --force --copy || abort "libtoolize"
125 fi 130 fi
126 echo "Running aclocal $aclocalinclude ..." 131 echo "Running aclocal $aclocalinclude ..."
127 aclocal $aclocalinclude 132 aclocal $aclocalinclude || abort "aclocal"
128 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then 133 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
129 echo "Running autoheader..." 134 echo "Running autoheader..."
130 autoheader 135 autoheader || abort "autoheader"
131 fi 136 fi
132 echo "Running automake --gnu $am_opt ..." 137 echo "Running automake --gnu $am_opt ..."
133 automake --add-missing --gnu $am_opt 138 automake --add-missing --gnu $am_opt || abort "automake"
134 echo "Running autoconf ..." 139 echo "Running autoconf ..."
135 autoconf 140 autoconf || abort "autoconf"
136 ) 141 )
137 fi 142 fi
138done 143done
@@ -142,7 +147,7 @@ done
142if test x$NOCONFIGURE = x; then 147if test x$NOCONFIGURE = x; then
143 echo Running $srcdir/configure $conf_flags "$@" ... 148 echo Running $srcdir/configure $conf_flags "$@" ...
144 $srcdir/configure $conf_flags "$@" \ 149 $srcdir/configure $conf_flags "$@" \
145 && echo Now type \`make\' to compile $PKG_NAME 150 && echo Now type \`make\' to compile $PKG_NAME || abort "configure"
146else 151else
147 echo Skipping configure process. 152 echo Skipping configure process.
148fi 153fi