Meta: Use a raw string delimiter in text-to-cpp-string.sh

Otherwise we can't have the sequence ')"' in GML :^)
This commit is contained in:
Andreas Kling 2020-12-31 23:31:22 +01:00
parent a4b3eb6b2d
commit 87ad68c75b

View file

@ -3,9 +3,9 @@
# $2 input path
echo "extern const char $1[];"
printf "const char %s[] = R\"(" "$1"
printf "const char %s[] = R\"~~~(" "$1"
grep -v '^ *#' < "$2" | while IFS= read -r line; do
echo "$line"
done
echo ")\";"
echo ")~~~\";"