1
0
mirror of https://github.com/mgcaret/of816.git synced 2024-12-27 04:29:32 +00:00
of816/ofw/build.sh
2020-11-05 17:43:47 -08:00

15 lines
307 B
Bash
Executable File

#!/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