forked from kiss-community/repo
11 lines
279 B
Bash
Executable File
11 lines
279 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
make HOSTCC="$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
|