[liboobs] Update autogen.sh



commit 266fcba2dfdc84319519c8133f593d618a096807
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat Sep 5 15:37:31 2009 +0200

    Update autogen.sh
    
    Take autogen.sh from a cleaner and generic GNOME version. Remove INSTALL, which is created by gnome-autogen.sh.

 INSTALL    |  234 ------------------------------------------------------------
 autogen.sh |   30 ++------
 2 files changed, 7 insertions(+), 257 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 913300d..336ae88 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,31 +6,15 @@ test -z "$srcdir" && srcdir=.
 
 PKG_NAME="Liboobs"
 
-(test -f $srcdir/configure.in \
- && test -f $srcdir/oobs/oobs-session.c) || {
+(test -f $srcdir/oobs/Makefile.am) || {
     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
-    echo " top-level directory"
-    echo ""
-    echo "Perhaps you need to \"svn co liboobs\" in \"..\" ?"
-    echo
+    echo " top-level $PKG_NAME directory"
     exit 1
 }
 
-ifs_save="$IFS"; IFS=":"
-for dir in $PATH ; do
-  test -z "$dir" && dir=.
-  if test -f $dir/gnome-autogen.sh ; then
-    gnome_autogen="$dir/gnome-autogen.sh"
-    gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
-    break
-  fi
-done
-IFS="$ifs_save"
-
-if test -z "$gnome_autogen" ; then
-  echo "You need to install the gnome-common module and make"
-  echo "sure the gnome-autogen.sh script is in your \$PATH."
-  exit 1
-fi
+which gnome-autogen.sh || {
+    echo "You need to install gnome-common from the GNOME git repository"
+    exit 1
+}
 
-REQUIRED_AUTOMAKE_VERSION=1.9 . $gnome_autogen
+REQUIRED_AUTOMAKE_VERSION=1.9 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]