From 87ad68c75b5158b69d8c3860aac7e4ed2b2038c1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 31 Dec 2020 23:31:22 +0100 Subject: [PATCH] Meta: Use a raw string delimiter in text-to-cpp-string.sh Otherwise we can't have the sequence ')"' in GML :^) --- Meta/text-to-cpp-string.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/text-to-cpp-string.sh b/Meta/text-to-cpp-string.sh index dea411ae6d..64213e7a92 100755 --- a/Meta/text-to-cpp-string.sh +++ b/Meta/text-to-cpp-string.sh @@ -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 ")~~~\";"