]> git.proxmox.com Git - mirror_zfs.git/commitdiff
autogen.sh: explicitly build its containing directory
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 5 Apr 2022 22:36:09 +0000 (00:36 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 May 2022 17:17:36 +0000 (10:17 -0700)
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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13316

autogen.sh

index 488e913b2bf42bdc2a303b6b615657eaf2374e1c..f56cd68be3ac7e748961509c6009b77347ade386 100755 (executable)
@@ -1,4 +1,2 @@
 #!/bin/sh
-
-autoreconf -fiv || exit 1
-rm -Rf autom4te.cache
+autoreconf -fiv "$(dirname "$0")" && rm -rf "$(dirname "$0")"/autom4te.cache