Add NOCONFIGURE logic to autogen.sh
authorDavid King <david.king@canonical.com>
Wed, 23 Jan 2013 09:35:17 +0000 (09:35 +0000)
committerDavid King <amigadave@amigadave.com>
Wed, 23 Jan 2013 15:24:54 +0000 (15:24 +0000)
Additionally, fix the script to run gtkdocize from $srcdir.

autogen.sh

index 0599598..ffe17e2 100755 (executable)
@@ -9,6 +9,8 @@ test -z "$srcdir" && srcdir=.
        exit 1
 }
 
+cd "$srcdir"
 gtkdocize --copy --flavour no-tmpl
-autoreconf --install --force
-. $srcdir/configure "$@"
+cd "$OLDPWD"
+autoreconf --install --force --verbose --warnings=all "$srcdir"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"