summaryrefslogtreecommitdiff
path: root/examples/server/deps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/deps.sh')
-rwxr-xr-xexamples/server/deps.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/server/deps.sh b/examples/server/deps.sh
index c0a9de9f..ea23e645 100755
--- a/examples/server/deps.sh
+++ b/examples/server/deps.sh
@@ -15,13 +15,6 @@ cd $PUBLIC
for FILE in $FILES; do
echo "generate $FILE.hpp"
- # Use C++11 string literals instead of ugly xxd.
- 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
- echo "unsigned int ${f}_len = sizeof($f);" >> $DIR/$FILE.hpp
-
- #Deprecated old xxd
- #xxd -i $FILE > $DIR/$FILE.hpp
+ # use simple flag for old version of xxd
+ xxd -i $FILE > $DIR/$FILE.hpp
done