From 150b4ae76b189aa4f376f62e5a2a8c734b7189e7 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 23 Sep 2022 13:30:01 -0700 Subject: [PATCH] don't hardcode absolute paths --- build-all | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 \ ;