meta: reduce repetition in build script
This commit is contained in:
parent
78c1cda400
commit
67ec821336
1 changed files with 12 additions and 7 deletions
19
build-all
19
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 \
|
||||
|
|
Loading…
Reference in a new issue