mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-02 09:12:03 +00:00
Revert "server : change deps.sh xxd files to string literals (#5221)"
This reverts commit 4003be0e5f.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user