Meta: Make the text-to-cpp-string thingy pass shellcheck

This commit is contained in:
Andreas Kling 2020-09-14 16:31:19 +02:00
parent 22b03dd11b
commit 2f97590409
Notes: sideshowbarker 2024-07-19 02:25:15 +09:00

View file

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