diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-24 01:14:26 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-24 01:14:26 +0300 |
commit | 0d03aaac6f83676654657a32338a7faa9d06b9df (patch) | |
tree | 07633a2e9ea33de21937ed215bea4026be6f159f /core/musl | |
parent | 661ba4266905aad3ada9c773c761847ac7f9a182 (diff) | |
download | repository-0d03aaac6f83676654657a32338a7faa9d06b9df.tar.gz |
musl: use clinst
Diffstat (limited to 'core/musl')
-rwxr-xr-x | core/musl/build | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/core/musl/build b/core/musl/build index e48ce47f..ec4352f5 100755 --- a/core/musl/build +++ b/core/musl/build @@ -5,17 +5,6 @@ # we are only supporting i686 and x86_64. sys_arch="$(uname -m)" -kinstall_t() { - # install -Dm* -t alternative - # usage: kinstall_t 755 /usr/bin file file2 file3 - mod=$1 dir=$2; mkdir -p "$dir" - shift 2 - for file; do - cp "$file" "$dir" - chmod "$mod" "$dir/$file" - done -} - ./configure \ --prefix=/usr \ --syslibdir=/usr/lib @@ -34,7 +23,7 @@ case "$sys_arch" in esac # Install BSD compatibility headers. -kinstall_t 755 "$1/usr/include/sys" cdefs.h queue.h tree.h +clinst -Dm755 -t "$1/usr/include/sys" cdefs.h queue.h tree.h # Install getconf. "${CC:=cc}" --static getconf.c -o "$1/usr/bin/getconf" @@ -45,4 +34,4 @@ case $sys_arch in i*86) esac # Install getent -kinstall_t 755 "$1/usr/bin" getent +clinst -Dm755 -t "$1/usr/bin" getent |