diff options
author | Cem Keylan <cem@ckyln.com> | 2023-01-12 18:02:02 +0100 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2023-01-12 18:02:02 +0100 |
commit | 7228fa544de19d8500fb9a097fff42d5ebf7c911 (patch) | |
tree | 06b3daa1c932840d00872b2fb9ebf5dd55e5c614 /extra/bearssl/build | |
parent | a681349aecbbb4aa9253a7581bf5d49649d84a48 (diff) | |
download | repository-7228fa544de19d8500fb9a097fff42d5ebf7c911.tar.gz |
bearssl: fix shellcheck error
Diffstat (limited to 'extra/bearssl/build')
-rwxr-xr-x | extra/bearssl/build | 16 |
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 |