mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-19 16:01:40 +00:00
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:
parent
a4b3eb6b2d
commit
87ad68c75b
|
@ -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 ")~~~\";"
|
||||
|
||||
|
|
Loading…
Reference in a new issue