Skip to content

Commit

Permalink
build: let autogen.sh script change into top source directory
Browse files Browse the repository at this point in the history
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
  • Loading branch information
thom311 committed Jul 7, 2014
1 parent 9c2dbdf commit c62cda9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions 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"

0 comments on commit c62cda9

Please sign in to comment.