mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-22 22:16:19 +00:00
16 lines
341 B
Bash
Executable File
16 lines
341 B
Bash
Executable File
#!/bin/sh -ef
|
|
|
|
mkdir -p \
|
|
"$1/usr/bin" \
|
|
"$1/usr/share/doc/kiss/init"
|
|
|
|
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" -o "$1/usr/bin/$bin" "bin/$bin.c" $CFLAGS -static
|
|
cp -f "bin/$bin.c" "$1/usr/share/doc/kiss/init/$bin.c"
|
|
done
|