Revert "server : change deps.sh xxd files to string literals (#5221)"
This reverts commit 4003be0e5f
.
This commit is contained in:
parent
e6f291d158
commit
e0085fdf7c
5 changed files with 5454 additions and 1368 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue