1
0
mirror of https://github.com/mgcaret/of816.git synced 2024-06-09 03:29:26 +00:00
of816/ofw/build.sh

15 lines
307 B
Bash
Raw Normal View History

2020-11-06 01:43:47 +00:00
#!/bin/bash
set -ex
cd `dirname $0`
mkdir -p out
cpp -w -nostdinc -traditional-cpp -undef -P -C -I. of.fs > out/of-blob.tmp
sed -e 's/^[ ]*//' < out/of-blob.tmp \
| sed -e '/^\\[ ]/d' \
| sed -e '/^([ ][^)]*[ ])[ ]*$$/d' \
| sed -e '/^$$/d' \
| cat -s > out/of-blob.fs
rm -f out/of-blob.tmp