[gedit] Use autoreconf instead gnome-autogen
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use autoreconf instead gnome-autogen
- Date: Wed, 8 Aug 2012 17:51:08 +0000 (UTC)
commit f386419501825eb0230790e692778c372632d8bd
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Jul 31 14:48:09 2012 +0200
Use autoreconf instead gnome-autogen
Also remove autogenerated INSTALL file
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631369
INSTALL | 237 ----------------------------------------------------------
autogen.sh | 57 +++++++++-----
configure.ac | 3 +
3 files changed, 40 insertions(+), 257 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 85d160d..6c3c1e9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,23 +1,40 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-PKG_NAME="gedit"
-
-(test -f $srcdir/configure.ac \
- && test -f $srcdir/README \
- && test -d $srcdir/gedit) || {
- echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level $PKG_NAME directory"
- exit 1
-}
-
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from GNOME Git (or from"
- echo "your OS vendor's package manager)."
- exit 1
-}
-
-REQUIRED_MACROS=python.m4 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+OLDDIR=`pwd`
+cd $srcdir
+
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please intall it ***"
+ exit 1
+fi
+
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+ echo "*** No intltoolize found, please install the intltool package ***"
+ exit 1
+fi
+
+GNOMEDOC=`which yelp-build`
+if test -z $GNOMEDOC; then
+ echo "*** The tools to build the documentation are not found,"
+ echo " please intall the yelp-tools package ***"
+ exit 1
+fi
+
+GTKDOCIZE=`which gtkdocize`
+if test -z $GTKDOCIZE; then
+ echo "*** No GTK-Doc found, please install it ***"
+ exit 1
+fi
+
+gtkdocize || exit $?
+autopoint --force || exit $?
+AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
+
+cd $OLDDIR
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
diff --git a/configure.ac b/configure.ac
index 702b856..c4df96c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,9 @@ dnl ================================================================
IT_PROG_INTLTOOL([0.40.0])
+AM_GNU_GETTEXT_VERSION([0.18])
+AM_GNU_GETTEXT([external])
+
AC_SUBST([GETTEXT_PACKAGE], [gedit])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Define to the gettext package name.])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]