linux_dsm_epyc7002/SynoBuildConf/install-dev-virtual-headers

13 lines
447 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.
mkdir -p "${DebDevBuild:?undefined}/DEBIAN/"
for _inc in ${ToolChainInclude32:=} ${ToolChainInclude64:=} ${StaticInclude32:=} ${StaticInclude64:=}; do
for _kinc in $(find "usr/include/"* -maxdepth 0 -type d -print | cut -d'/' -f3); do
mkdir -p "$DebDevBuild/$_inc/$_kinc"
cp -a "usr/include/$_kinc/"* "$DebDevBuild/$_inc/$_kinc"
done
done