set -v
echo "CPPCCHOME:$CPPCCHOME"

$CPPCCHOME/bin/cppcc F10_ErrorHandling.sgr
cp F10*.h ../incloc
cp F10*.cc ../srcloc
# cppcc also emits F3KeyWordDefinition.py / .mjs / .rs (Python / JS / Rust
# siblings of the C++ KeyWordDefinition.{cc,h}); keep them next to the
# generated .cc sources so any downstream Python / JS / Rust decompiler
# can load this grammar's KeyWords table.
cp F10*.py *.mjs *.rs ../srcloc

ls -l ../incloc
ls -l ../srcloc

cd ../lib
rm -rf *.a
make -f makeboot2

cd ../bin
rm -rf ccsf10
make -f makeboot2
