mirror of https://github.com/mgcaret/of816.git
14 lines
324 B
Bash
Executable File
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
|
|
|