From fccec2a813217eeff6684ca72a1ee55d4a19ab22 Mon Sep 17 00:00:00 2001 From: JohnnyB Date: Tue, 30 Jan 2024 18:04:13 +0000 Subject: [PATCH] Dashes in literal variable names. Replace . and - with _ in file names -> variable names. --- examples/server/deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/deps.sh b/examples/server/deps.sh index c8479f390..5e8e185f7 100755 --- a/examples/server/deps.sh +++ b/examples/server/deps.sh @@ -16,7 +16,7 @@ for FILE in $FILES; do echo "generate $FILE.hpp" # use simple flag for old version of xxd - f=$(echo $FILE | sed 's/\./_/g') + f=$(echo $FILE | sed 's/\./_/g' -e 's/-/_/g') echo "const char $f[] = R\"LITERAL(" > $DIR/$FILE.hpp cat $FILE >> $DIR/$FILE.hpp echo ")LITERAL\";" >> $DIR/$FILE.hpp