2022-09-23 13:21:45 -07:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
yes_retrieve() {
|
|
|
|
local a="$1"
|
|
|
|
shift || return
|
2022-09-23 13:30:01 -07:00
|
|
|
podman run -v="play":/out --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/out/"
|
2022-09-23 13:21:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dbg_retrieve() {
|
|
|
|
: \
|
|
|
|
&& yes_retrieve "$1" "$2" \
|
|
|
|
&& yes_retrieve "$1" "$2.dbg" \
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
: \
|
2022-09-23 13:30:01 -07:00
|
|
|
&& cd "$(readlink -f "$0")" \
|
|
|
|
\
|
|
|
|
&& [ -d out ] || mkdir out \
|
|
|
|
\
|
|
|
|
&& podman build -t notwa-util notwa-util \
|
|
|
|
&& podman build -t cosmo cosmo \
|
|
|
|
&& podman build -t cosmo-kuroko cosmo-kuroko \
|
2022-09-23 13:21:45 -07:00
|
|
|
\
|
|
|
|
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
|
|
|
|
;
|