Skip to content

Commit

Permalink
sutogen.sh: fix invocation from non-src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Apr 5, 2021
1 parent 04bbcc4 commit 05dead2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh

echo "Generating toplevel configure script..."
DIR=$(dirname $0 | xargs realpath)
echo "Generating toplevel configure script in $DIR..."
rm -f aclocal.m4
if ! autoreconf -I m4 --install --force ; then
if ! autoreconf -I m4 --install --force $DIR; then
echo "Failure!"
exit 1
fi
echo
echo "Done, now run $(dirname $0)/default-configure"
echo "Done, now run $DIR/default-configure"

0 comments on commit 05dead2

Please sign in to comment.