crap/generate-vst
2014-01-29 17:59:12 -08:00

15 lines
230 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -u
pp_include="#include \"$1\""
out="$2"
(cat template-vst.cpp | while read -r; do
case "$REPLY" in
'//#INCLUDE') echo "$pp_include" ;;
*) echo -E "$REPLY" ;;
esac
done) > "$out"