Revert "server : change deps.sh xxd files to string literals (#5221)"

This reverts commit 4003be0e5f.
This commit is contained in:
Georgi Gerganov 2024-01-30 21:19:26 +02:00
parent e6f291d158
commit e0085fdf7c
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
5 changed files with 5454 additions and 1368 deletions

View file

@ -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