Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

build: let autogen.sh script change into top source directory

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
  • Loading branch information...
commit c62cda91f73b418c1414cb3dc0f56af9e09ffcfd 1 parent 9c2dbdf
@thom311 authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 autogen.sh
View
13 autogen.sh
@@ -1,6 +1,15 @@
#!/bin/bash
-autoreconf -fi;
+die() {
+ echo "$@" >&2
+ exit 1
+}
+
+BASEDIR="$(dirname "$0")"
+
+cd "$BASEDIR" || die "Could not change into base directory $BASEDIR"
+
+autoreconf -fi || die "Error during autoreconf"
rm -Rf autom4te.cache;
-doc/autogen.sh
+doc/autogen.sh || die "Error during doc/autogen.sh"
Please sign in to comment.
Something went wrong with that request. Please try again.