[libwnck] Make autogen.sh more modern.
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [libwnck] Make autogen.sh more modern.
- Date: Thu, 23 Apr 2009 22:44:33 -0400 (EDT)
commit ce2231175f2bfea6ddaefb4fff8a2fe37a8d6613
Author: Vincent Untz <vuntz gnome org>
Date: Fri Apr 24 03:25:03 2009 +0200
Make autogen.sh more modern.
---
autogen.sh | 28 ++++++++--------------------
1 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index eed451a..6926aeb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,34 +1,22 @@
-#! /bin/sh
+#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="libwnck"
+REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.in \
- && test -d $srcdir/libwnck \
&& test -f $srcdir/libwnck/libwnck.h) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level libwnck directory"
+ 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."
+ exit 1
+}
-REQUIRED_AUTOMAKE_VERSION=1.6 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen
+. gnome-autogen.sh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]