2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/core/baseinit/build

14 lines
315 B
Plaintext
Raw Normal View History

2020-02-05 10:14:43 +00:00
#!/bin/sh -ef
2019-06-20 07:45:35 +00:00
2020-02-05 10:14:43 +00:00
mkdir -p "$1/usr/bin"
2019-06-21 08:17:48 +00:00
cp -R etc "$1"
cp -R lib "$1/usr/lib"
2020-02-05 10:14:43 +00:00
# Disable warning as CFLAGS must work this way.
# shellcheck disable=2086
2020-02-25 18:16:38 +00:00
for bin in kpow kall; do
"${CC:-cc}" -o "$1/usr/bin/$bin" "bin/$bin.c" $CFLAGS -static
2020-03-07 12:38:31 +00:00
install -Dm644 "bin/$bin.c" "$1/usr/share/doc/kiss/init/$bin.c"
2020-02-25 18:16:38 +00:00
done