2022-09-23 13:21:45 -07:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
: \
|
2022-10-05 02:07:29 -07:00
|
|
|
&& me="$(readlink -f "$0")" && cd "${me%/*}" && { [ -d out ] || mkdir out ;} \
|
2023-05-19 20:52:28 -07:00
|
|
|
&& . ./lib.sh \
|
2022-10-15 01:17:33 -07:00
|
|
|
&& : \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:17:33 -07:00
|
|
|
`# phase 1` \
|
2022-10-15 00:21:22 -07:00
|
|
|
&& build notwa-util \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:17:33 -07:00
|
|
|
`# phase 2` \
|
2022-10-17 20:06:32 -07:00
|
|
|
&& build cosmo-bootstrap --build-arg=COSMO_FLAVOR="${1:-def}" \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:17:33 -07:00
|
|
|
`# phase 3` \
|
2022-10-17 20:06:32 -07:00
|
|
|
&& build cosmo-all --build-arg=COSMO_FLAVOR="${2:-def}" \
|
2022-10-15 00:41:48 -07:00
|
|
|
&& build cosmo-dist \
|
2022-10-15 01:23:58 -07:00
|
|
|
&& build rescue \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:17:33 -07:00
|
|
|
`# phase 4` \
|
2022-10-18 19:02:39 -07:00
|
|
|
&& build_base \
|
2022-10-15 01:30:12 -07:00
|
|
|
&& build_simple \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:17:33 -07:00
|
|
|
`# phase 5` \
|
2022-10-15 00:21:22 -07:00
|
|
|
&& build cosmo-kuroko \
|
|
|
|
&& build cosmo-muon \
|
|
|
|
&& build cosmo-perl \
|
|
|
|
&& build cosmo-yices \
|
2022-10-17 16:34:26 -07:00
|
|
|
\
|
2022-10-15 01:40:56 -07:00
|
|
|
`# other stuff` \
|
2022-10-18 13:55:24 -07:00
|
|
|
&& { [ ! -s cosmo-mini/Dockerfile ] || build cosmo-mini ;} \
|
2022-09-23 13:21:45 -07:00
|
|
|
\
|
2022-10-15 01:15:13 -07:00
|
|
|
&& yes_retrieve cosmo-base /cosmopolitan/bin/ape \
|
|
|
|
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
|
|
|
|
&& dbg_retrieve cosmo-muon /bin/muon.com \
|
|
|
|
&& dbg_retrieve cosmo-perl /bin/perl.com \
|
|
|
|
&& dbg_retrieve cosmo-yices /bin/kissat.com /bin/yices-sat.com \
|
|
|
|
/bin/yices-smt.com /bin/yices-smt2.com \
|
|
|
|
/bin/yices.com \
|
2022-10-15 01:30:12 -07:00
|
|
|
\
|
|
|
|
&& dbg_retrieve assimilate /bin/assimilate.com \
|
|
|
|
&& dbg_retrieve bd /bin/bd.com \
|
|
|
|
&& dbg_retrieve bing /bin/bing.com /bin/unbing.com \
|
|
|
|
&& dbg_retrieve blinkenlights /bin/blinkenlights.com \
|
|
|
|
&& dbg_retrieve cosmo-awk /bin/awk.com \
|
|
|
|
&& dbg_retrieve cosmo-chibicc /bin/chibicc.com \
|
|
|
|
&& dbg_retrieve cosmo-lua /bin/lua.com /bin/luac.com \
|
|
|
|
&& dbg_retrieve cosmo-make /bin/make.com \
|
|
|
|
&& dbg_retrieve cosmo-python /bin/python.com \
|
|
|
|
&& dbg_retrieve cosmo-quickjs /bin/qjs.com /bin/qjsc.com \
|
|
|
|
&& dbg_retrieve cosmo-sed /bin/sed.com \
|
|
|
|
&& dbg_retrieve cosmo-sqlite /bin/sqlite3.com \
|
|
|
|
&& dbg_retrieve fold /bin/fold.com \
|
|
|
|
&& dbg_retrieve greenbean /bin/greenbean.com \
|
|
|
|
&& dbg_retrieve hello /bin/hello.com \
|
|
|
|
&& dbg_retrieve life /bin/life.com \
|
|
|
|
&& dbg_retrieve memzoom /bin/memzoom.com \
|
|
|
|
&& dbg_retrieve mkdeps /bin/mkdeps.com \
|
|
|
|
&& dbg_retrieve pledge /bin/pledge.com \
|
|
|
|
&& dbg_retrieve printimage /bin/printimage.com \
|
|
|
|
&& dbg_retrieve printvideo /bin/printvideo.com \
|
|
|
|
&& dbg_retrieve redbean /bin/redbean.com \
|
|
|
|
&& dbg_retrieve tinyemu /bin/tinyemu.com \
|
|
|
|
&& dbg_retrieve unbourne /bin/unbourne.com \
|
|
|
|
&& dbg_retrieve unveil /bin/unveil.com \
|
2022-09-23 13:21:45 -07:00
|
|
|
;
|