diff --git a/build-all b/build-all index 4c80333..59f05ea 100755 --- a/build-all +++ b/build-all @@ -24,16 +24,21 @@ dbg_retrieve() { : \ && yes_retrieve "$container" "$@" \ ;} +build() { : \ + && local t="${1?missing argument}" && shift \ + && podman build -t "$t" "$t" "$@" \ + ;} + : \ && me="$(readlink -f "$0")" && cd "${me%/*}" && { [ -d out ] || mkdir out ;} \ \ - && podman build -t notwa-util notwa-util \ - && podman build -t cosmo-bootstrap cosmo-bootstrap \ - && podman build -t cosmo-base cosmo-base \ - && podman build -t cosmo-kuroko cosmo-kuroko \ - && podman build -t cosmo-muon cosmo-muon \ - && podman build -t cosmo-perl cosmo-perl \ - && podman build -t cosmo-yices cosmo-yices \ + && build notwa-util \ + && build cosmo-bootstrap \ + && build cosmo-base \ + && build cosmo-kuroko \ + && build cosmo-muon \ + && build cosmo-perl \ + && build cosmo-yices \ \ && bin=/cosmopolitan/bin \ && yes_retrieve cosmo-base $bin/ape $bin/awk.com $bin/gzip.com $bin/make.com \