From 08166dd3a77609b7a87e618f42099bbfd346204c Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 13 Jan 2024 17:26:17 -0500 Subject: [PATCH] Don't use `install` because it is not POSIX. Closes #13. --- configure | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure b/configure index f962059..e3f6f5b 100755 --- a/configure +++ b/configure @@ -184,22 +184,28 @@ compile_doc() { install_out() { src="$1" out="$2" + dir=$(dirname "$out") - echo "${TAB}install -D \"$src\" \"$out\"" + echo "${TAB}mkdir -p \"$dir\"" + echo "${TAB}cp \"$src\" \"$out\"" } install_man() { src="${OUT}/man/man3/${LIB_NAME}-$(basename $1 .h).3" out="$2" + dir=$(dirname "$out") - echo "${TAB}install -D \"$src\" \"$out\"" + echo "${TAB}mkdir -p \"$dir\"" + echo "${TAB}cp \"$src\" \"$out\"" } install_tool() { src=${OUT}/bin/$(basename "$1" .c) out="$2" + dir=$(dirname "$out") - echo "${TAB}install -D \"$src\" \"$out\"" + echo "${TAB}mkdir -p \"$dir\"" + echo "${TAB}cp \"$src\" \"$out\"" } uninstall_out() {