[libgovirt] build-sys: rewrite autogen.sh
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] build-sys: rewrite autogen.sh
- Date: Sat, 29 Nov 2014 15:00:43 +0000 (UTC)
commit d60503751731665107da9fea3f3a04835191328e
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Sat Nov 29 15:58:34 2014 +0100
build-sys: rewrite autogen.sh
Start it from scratch:
- no need to define ACLOCAL_FLAGS again with same value
- USE_GNOME2_MACROS is deprecated for 10y
- cd "$srcdir" is wrong: you can't autogen.sh out-of-tree because of this
- srcdir=. is already a fallback in gnome-autogen.sh
- there is no need to override $srcdir, so define it without condition
- there is no gtk-doc, remove --enable-gtk-doc
- remove copyright
autogen.sh | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index b120513..002ff76 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,30 +1,11 @@
#!/bin/sh
-# Copyright (C) 2010-2011 Richard Hughes <richard hughsie com>
-#
-# Run this to generate all the initial makefiles, etc.
-#
-# Licensed under the GNU General Public License Version 2
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
PKG_NAME="govirt"
-test -n "$srcdir" || srcdir=`dirname "$0"`
-test -n "$srcdir" || srcdir=.
-
-olddir=`pwd`
-cd "$srcdir"
-
-#GTKDOCIZE=`which gtkdocize`
-#if test -z $GTKDOCIZE; then
-# echo "*** No GTK-Doc found, please install it ***"
-# exit 1
-#fi
+srcdir=`dirname "$0"`
which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME git"
exit 1
}
-ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-gtk-doc "$@"
+. gnome-autogen.sh "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]