aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-01-12 18:02:02 +0100
committerCem Keylan <cem@ckyln.com>2023-01-12 18:02:02 +0100
commit7228fa544de19d8500fb9a097fff42d5ebf7c911 (patch)
tree06b3daa1c932840d00872b2fb9ebf5dd55e5c614 /extra
parenta681349aecbbb4aa9253a7581bf5d49649d84a48 (diff)
downloadrepository-7228fa544de19d8500fb9a097fff42d5ebf7c911.tar.gz
bearssl: fix shellcheck error
Diffstat (limited to 'extra')
-rwxr-xr-xextra/bearssl/build16
1 files changed, 5 insertions, 11 deletions
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