[gitg] Improved autogen.sh
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Improved autogen.sh
- Date: Sat, 6 Aug 2011 16:45:48 +0000 (UTC)
commit 431218bdab203c11bcea06fe9024a2881db78fd4
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sat Aug 6 18:45:41 2011 +0200
Improved autogen.sh
autogen.sh | 39 ++++++++++++++++++++++++---------------
1 files changed, 24 insertions(+), 15 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 942dff9..a8dc0b2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,22 +1,31 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
-PKG_NAME="gitg"
+olddir=`pwd`
+cd "$srcdir"
-(test -f $srcdir/configure.ac \
- && test -f $srcdir/README \
- && test -d $srcdir/$PKG_NAME) || {
- echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level $PKG_NAME directory"
- exit 1
-}
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+ echo "*** No intltoolize found, please install the intltool package ***"
+ exit 1
+fi
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from the GNOME CVS"
- exit 1
-}
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please install it ***"
+ exit 1
+fi
-. gnome-autogen.sh
+if test -z `which autopoint`; then
+ echo "*** No autopoint found, please install it ***"
+ exit 1
+fi
+
+autopoint --force
+AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
+
+cd "$olddir"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]