From 7228fa544de19d8500fb9a097fff42d5ebf7c911 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 12 Jan 2023 18:02:02 +0100 Subject: bearssl: fix shellcheck error --- extra/bearssl/build | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'extra/bearssl') diff --git a/extra/bearssl/build b/extra/bearssl/build index c0e5e7f2..4ee354ae 100755 --- a/extra/bearssl/build +++ b/extra/bearssl/build @@ -4,12 +4,7 @@ for patch in *.patch; do patch -p1 < "$patch" done -kinstall() { - mkdir -p "${3%/*}"; cp "$2" "$3" - chmod "$1" "$3" -} - -make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC +make "CC=${CC:=cc}" "AR=${AR:=ar}" LD="$CC" # Build static binary for bearssl, word splitting on CFLAGS is intentional. # shellcheck disable=2086 @@ -20,8 +15,7 @@ make "CC=${CC:=cc}" "AR=${AR:=ar}" LD=$CC build/libbearssl.a \ -o brssl -kinstall 755 brssl "$1/usr/bin/brssl" -kinstall 644 build/libbearssl.a "$1/usr/lib/libbearssl.a" -kinstall 755 build/libbearssl.so "$1/usr/lib/libbearssl.so" - -mv inc "$1/usr/include" +clinst -Dm755 brssl "$1/usr/bin/brssl" +clinst -Dm644 build/libbearssl.a "$1/usr/lib/libbearssl.a" +clinst -Dm755 build/libbearssl.so "$1/usr/lib/libbearssl.so" +clinst -Dm644 -t "$1/usr/include" inc/*.h -- cgit v1.2.3