1
0
mirror of https://github.com/mgcaret/of816.git synced 2024-06-02 02:41:33 +00:00
of816/ofw/build.sh
2020-11-11 15:01:57 -08:00

14 lines
324 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 's/[ ]\\[ ].+$//' \
| sed -e '/^([ ][^)]*[ ])[ ]*$/d' \
| sed -e '/^$/d' > out/of-blob.fs
rm -f out/of-blob.tmp