diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-11-29 15:58:34 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-11-29 15:59:46 +0100 |
commit | d60503751731665107da9fea3f3a04835191328e (patch) | |
tree | 39053bb566f254186e4ebc15d7951d8fb131d2d9 /autogen.sh | |
parent | 41686bc2dcd6eba4562bf279349bf171082b8c71 (diff) |
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
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -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 "$@" |