From bc734f6bd155abf0d9000067ef6da2984e906cf1 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 23 Sep 2022 13:21:45 -0700 Subject: [PATCH] add build-all script --- build-all | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 build-all diff --git a/build-all b/build-all new file mode 100755 index 0000000..030f537 --- /dev/null +++ b/build-all @@ -0,0 +1,22 @@ +#!/usr/bin/env sh + +yes_retrieve() { + local a="$1" + shift || return + podman run -v="$HOME/play":/play --rm --entrypoint /bin/busybox "$a" cp -- "$@" "/play/" +} + +dbg_retrieve() { + : \ + && yes_retrieve "$1" "$2" \ + && yes_retrieve "$1" "$2.dbg" \ + ; +} + +: \ + && podman build -t notwa-util ~/work/notwa-util \ + && podman build -t cosmo ~/work/cosmo \ + && podman build -t cosmo-kuroko ~/work/cosmo-kuroko \ +\ + && dbg_retrieve cosmo-kuroko /bin/kuroko.com \ +;