From e9cb0c788c074aa808a7c2063d181f524f23ce8a Mon Sep 17 00:00:00 2001 From: Anthony Foiani Date: Thu, 26 Apr 2012 19:55:59 -0600 Subject: Allow multi-word "install" command. Autoconf can determine that the correct install command includes flags, e.g., "/usr/bin/install -c". When using this as a command, we can't enclose the value in double-quotes, as that makes some shells use the whole expression as a filename: # this is the value returned by autoconf and stored in CT_install $ ins="/usr/bin/install -c" # if we call it with quotes, the command is not found $ "${ins}" bash: /usr/bin/install -c: No such file or directory # removing the quotes lets it work as expected $ ${ins} /usr/bin/install: missing file operand Try `/usr/bin/install --help' for more information. Signed-Off-By: Anthony Foiani diff --git a/scripts/populate.in b/scripts/populate.in index 5d8f595..28a9740 100644 --- a/scripts/populate.in +++ b/scripts/populate.in @@ -205,7 +205,7 @@ do_add_lib() { *) mode=0644;; esac ${CT_PRINTF} " installing as '%s/%s', mode='%s'\n" "${dir}" "${true_libname}" "${mode}" - "${install}" -m "${mode}" "${libfile}" "${dir}/${true_libname}" + ${install} -m "${mode}" "${libfile}" "${dir}/${true_libname}" do_resolve_deps "${dir}/${true_libname}" return 0 fi -- cgit v0.10.2-6-g49f6