2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00
repo/core/baseinit/build
2020-02-25 20:16:38 +02:00

13 lines
247 B
Bash
Executable File

#!/bin/sh -ef
mkdir -p "$1/usr/bin"
cp -R etc "$1"
cp -R lib "$1/usr/lib"
# Disable warning as CFLAGS must work this way.
# shellcheck disable=2086
for bin in kpow kall; do
"${CC:-cc}" -o "$1/usr/bin/$bin" "bin/$bin.c" $CFLAGS -static
done