sfizz/scripts/generate_re2c.sh

12 lines
197 B
Bash
Raw Permalink Normal View History

2020-05-04 18:30:21 +02:00
#!/bin/sh
set -e
if ! test -d "src"; then
echo "Please run this in the project root directory."
exit 1
fi
for src in src/sfizz/OpcodeCleanup.re; do
re2c -o "${src%.re}.cpp" "$src"
done