meta: reduce repetition in build script

This commit is contained in:
Connor Olding 2022-10-15 00:21:22 -07:00
parent 78c1cda400
commit 67ec821336

View file

@ -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 \