diff --git a/build-all b/build-all index 030f537..4e381a6 100755 --- a/build-all +++ b/build-all @@ -3,7 +3,7 @@ yes_retrieve() { local a="$1" shift || return - podman run -v="$HOME/play":/play --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/play/" + podman run -v="play":/out --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/out/" } dbg_retrieve() { @@ -14,9 +14,13 @@ dbg_retrieve() { } : \ - && podman build -t notwa-util ~/work/notwa-util \ - && podman build -t cosmo ~/work/cosmo \ - && podman build -t cosmo-kuroko ~/work/cosmo-kuroko \ + && 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 \ \ && dbg_retrieve cosmo-kuroko /bin/kuroko.com \ ;