stargazing/notwa-util/cosmopolitan9

33 lines
1.1 KiB
Plaintext
Executable File

#!/usr/bin/false
if [ ! -e /cosmopolitan.done ]; then
: \
&& cd /root/cosmopolitan \
&& export V=0 COLUMNS=80 TMPDIR=/tmp \
&& export COSMO_FLAVOR=opt \
&& . ./env \
&& { [ "$COSMO_FLAVOR" != def ] && mode="$COSMO_FLAVOR" || mode= ;} \
&& printf '%s="%s"\n' >env \
commit "$commit" \
flavor "$COSMO_FLAVOR" \
mode "$mode" \
COSMO "/opt/cosmo" \
COSMO_DIST "/opt/cosmo/dist/$COSMO_FLAVOR" \
\
&& shed expand "s_o='o/[^']*'_o='o/$mode' _g" \
\
&& . ./env \
&& { ./makeit MODE="$mode" depend || find o -name '*.o' -delete ;} \
&& ./makeit MODE="$mode" "o/$mode/third_party/make/make.com" \
&& cp -int build/bootstrap "o/$mode/third_party/make/make.com" \
\
&& skip() { mkdir -p "${1%/*}" && touch -d @2222222222 "$1" ;} \
&& skip "o/$mode/test/libc/calls/getgroups_test.com.runs" \
&& `#skip "o/$mode/test/libc/calls/getpriority_test.com.runs"` \
&& `#skip "o/$mode/test/libc/stdio/tmpfile_test.com.runs"` \
&& skip "o/$mode/third_party/python/Lib/test/test_ioctl.py.runs" `# SIGSEGV` \
&& skip "o/$mode/third_party/python/Lib/test/test_tarfile.py.runs" \
&& ./makeit MODE="$mode" all \
&& touch /cosmopolitan.done \
|| exit $?
fi