2020-02-05 03:14:43 -07:00
|
|
|
#!/bin/sh -ef
|
2019-06-20 01:45:35 -06:00
|
|
|
|
2021-07-01 09:59:54 -06:00
|
|
|
mkdir -p \
|
|
|
|
"$1/usr/bin" \
|
|
|
|
"$1/usr/share/doc/kiss/init"
|
2019-06-26 00:53:59 -06:00
|
|
|
|
2019-06-21 02:17:48 -06:00
|
|
|
cp -R etc "$1"
|
2019-06-26 00:53:59 -06:00
|
|
|
cp -R lib "$1/usr/lib"
|
2020-02-05 03:14:43 -07:00
|
|
|
|
|
|
|
# Disable warning as CFLAGS must work this way.
|
|
|
|
# shellcheck disable=2086
|
2020-02-25 11:16:38 -07:00
|
|
|
for bin in kpow kall; do
|
2021-07-17 21:47:51 -06:00
|
|
|
"$CC" -o "$1/usr/bin/$bin" "bin/$bin.c" $CFLAGS -static
|
2021-07-01 09:59:54 -06:00
|
|
|
cp -f "bin/$bin.c" "$1/usr/share/doc/kiss/init/$bin.c"
|
2020-02-25 11:16:38 -07:00
|
|
|
done
|