mirror of
https://github.com/mgcaret/of816.git
synced 2024-06-09 03:29:26 +00:00
15 lines
307 B
Bash
15 lines
307 B
Bash
|
#!/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
|
||
|
|
||
|
|