2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 03:00:10 -07:00
repo/core/linux-headers/build
2021-07-01 16:23:00 +00:00

11 lines
285 B
Bash
Executable File

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