]> arthur.barton.de Git - bup.git/commitdiff
configure.inc: avoid bash-specific printf %q
authorRob Browning <rlb@defaultvalue.org>
Sun, 18 Aug 2019 17:17:25 +0000 (12:17 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Aug 2019 18:47:47 +0000 (13:47 -0500)
Although I'm the one who suggested it in the first place, avoid printf
%q since it's bash specific, and the ./configure specifies /bin/sh.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
config/configure.inc

index d105fddba93f7951e73e1fc911dd55bf80f952e5..b25ca509efddb2b648e629849e57cb0e205324d0 100644 (file)
@@ -47,6 +47,16 @@ ac_standard="--src=DIR               where the source lives (.)
 
 __fail=exit
 
+
+__ac_tmpdir=''
+__ac_clean_up () {
+    if test "$__ac_tmpdir"; then
+        rm -rf "$__ac_tmpdir"
+    fi
+}
+trap __ac_clean_up EXIT
+
+
 if dirname B/A 2>/dev/null >/dev/null; then
 __ac_dirname() {
     dirname "$1"
@@ -585,7 +595,6 @@ MF_PATH_INCLUDE () {
 #
 AC_INIT () {
     __ac_tmpdir=$(mktemp -d)
-    trap "$(printf 'rm -rf %q' "$__ac_tmpdir")" EXIT
     __config_files="config.cmd config.sub config.h config.mak config.log"
     __config_detritus="config.h.tmp"
     rm -f $__config_files $__config_detritus