aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-06 00:36:09 +0200
committerBrian Behlendorf <[email protected]>2022-05-10 10:17:36 -0700
commitc6f923fba4bebce43ee414c1e8a7dda91f9fe2b1 (patch)
tree86921fbd348d9e7a96a87a585a6028fcf305898e /autogen.sh
parentea532b0e6ee61370ad552533016c48c858240671 (diff)
autogen.sh: explicitly build its containing directory
No changes in currently-accepted usages (no-argument), but allows /src/path/autogen.sh && /src/path/configure for simpler out-of-tree builds Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13316
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 488e913b2..f56cd68be 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,2 @@
#!/bin/sh
-
-autoreconf -fiv || exit 1
-rm -Rf autom4te.cache
+autoreconf -fiv "$(dirname "$0")" && rm -rf "$(dirname "$0")"/autom4te.cache