Luna/tools/install-headers.sh
apio 8098ff0616
All checks were successful
continuous-integration/drone/push Build is passing
tools: Avoid rebuilding libc and friends every single time
We do this by preserving timestamps when copying headers so CMake doesn't think they have changed.
2023-01-25 21:16:20 +01:00

14 lines
304 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
mkdir -p $LUNA_BASE
mkdir -p $LUNA_BASE/usr/include
mkdir -p $LUNA_BASE/usr/include/luna
cp --preserve=timestamps -RT libc/include/ $LUNA_BASE/usr/include
cp --preserve=timestamps -RT luna/include/luna/ $LUNA_BASE/usr/include/luna