2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00

linux-headers: remove usage of install

This commit is contained in:
Dylan Araps 2021-07-01 16:23:00 +00:00
parent 39cfb3320a
commit a75f2717ee
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -3,7 +3,8 @@
make HOSTCC="${CC:-cc}" headers make HOSTCC="${CC:-cc}" headers
# The headers require rsync for installation, this command # The headers require rsync for installation, this command
# simply does the equivalent using find. # simply does the equivalent using find, mkdir and cp.
find usr/include -name \*.h -type f | while read -r file; do find usr/include -name \*.h -type f | while read -r file; do
install -Dm644 "$file" "$1/$file" mkdir -p "$1/${file%/*}"
cp -f "$file" "$1/$file"
done done