Fix distribute.sh script to generate cosmopolitan.h

This commit is contained in:
Paul Kulchenko 2021-09-17 17:51:09 -07:00
parent 5ffeaa8e33
commit b099a5a778

View file

@ -1,8 +1,8 @@
#!/bin/sh
set -ex
rm -f o/ansi/.cosmopolitan.h o/ansi/cosmopolitan.h
make -j12 o/ansi/cosmopolitan.h MODE=ansi
rm -f o/.cosmopolitan.h o/cosmopolitan.h
make -j12 o/cosmopolitan.h
make -j12 o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds
make -j12 o//cosmopolitan.a
@ -19,7 +19,7 @@ cp o//ape/ape.o \
echo '#ifdef __cplusplus'
echo 'extern "C" {'
echo '#endif'
cat o/ansi/cosmopolitan.h
cat o/cosmopolitan.h
echo '#ifdef __cplusplus'
echo '} /* extern C */'
echo '#endif'