mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 10:54:36 +00:00
server : update xxd usage for older versions compatibility (#2649)
* server : update xxd usage for older versions compatibility * remove unused $func
This commit is contained in:
parent
2d8b76a110
commit
f63564adfa
@ -11,8 +11,10 @@ echo >> $PUBLIC/index.js # add newline
|
|||||||
|
|
||||||
FILES=$(ls $PUBLIC)
|
FILES=$(ls $PUBLIC)
|
||||||
|
|
||||||
|
cd $PUBLIC
|
||||||
for FILE in $FILES; do
|
for FILE in $FILES; do
|
||||||
func=$(echo $FILE | tr '.' '_')
|
echo "generate $FILE.hpp"
|
||||||
echo "generate $FILE.hpp ($func)"
|
|
||||||
xxd -n $func -i $PUBLIC/$FILE > $DIR/$FILE.hpp
|
# use simple flag for old version of xxd
|
||||||
|
xxd -i $FILE > $DIR/$FILE.hpp
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user