Comment on removing xxd.

XXD-> string literals
This commit is contained in:
JohnnyB 2024-01-30 18:04:51 +00:00 committed by GitHub
parent fccec2a813
commit df5cc0b27c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ cd $PUBLIC
for FILE in $FILES; do for FILE in $FILES; do
echo "generate $FILE.hpp" echo "generate $FILE.hpp"
# use simple flag for old version of xxd # Use C++11 string literals instead of ugly xxd.
f=$(echo $FILE | sed 's/\./_/g' -e 's/-/_/g') f=$(echo $FILE | sed 's/\./_/g' -e 's/-/_/g')
echo "const char $f[] = R\"LITERAL(" > $DIR/$FILE.hpp echo "const char $f[] = R\"LITERAL(" > $DIR/$FILE.hpp
cat $FILE >> $DIR/$FILE.hpp cat $FILE >> $DIR/$FILE.hpp