summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-09 04:01:24 +0200
committerGravatar Martin Szulecki2020-06-09 04:01:24 +0200
commitffb0dde05c45bfc1965a469ad60d1cd0789b3829 (patch)
treea8a43418012ae50598c2adc68c7981248bf1ba63
parent1b78535c51c1290548b4f08c33abea152a79aba9 (diff)
downloadifuse-ffb0dde05c45bfc1965a469ad60d1cd0789b3829.tar.gz
ifuse-ffb0dde05c45bfc1965a469ad60d1cd0789b3829.tar.bz2
Apply changes towards a project wide common "autogen.sh" file
-rwxr-xr-xautogen.sh21
1 files changed, 16 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 8bdd622..1247057 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,9 +1,20 @@
#!/bin/sh
-aclocal
-autoheader
-automake --add-missing
-autoconf
+
+olddir=`pwd`
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+(
+ cd "$srcdir"
+
+ aclocal
+ autoheader
+ automake --add-missing
+ autoconf
+
+ cd "$olddir"
+)
if [ -z "$NOCONFIGURE" ]; then
- ./configure "$@"
+ $srcdir/configure "$@"
fi