stargazing/notwa-util/cosmopolitan11

33 lines
1.2 KiB
Text
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" \
\
&& . ./env \
&& sed -i -e "s_MODE='[^']*'_MODE='$mode'_g" makeit \
&& sed -i -e "s_o='o/[^']*'_o='o/$mode'_g" expand \
\
&& { ./makeit depend || find o -name '*.o' -delete ;} \
&& ./makeit "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 all \
&& touch /cosmopolitan.done \
|| exit $?
fi