]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : update xxd usage for older versions compatibility (#2649)
authorJhen-Jie Hong <redacted>
Fri, 18 Aug 2023 21:41:32 +0000 (05:41 +0800)
committerGitHub <redacted>
Fri, 18 Aug 2023 21:41:32 +0000 (05:41 +0800)
* server : update xxd usage for older versions compatibility

* remove unused $func

examples/server/deps.sh

index 1e9fe964b961a3249c279ab36a2e4d583da1c320..ea23e64500b09b7535725fe5bb9574a33c729192 100755 (executable)
@@ -11,8 +11,10 @@ echo >> $PUBLIC/index.js # add newline
 
 FILES=$(ls $PUBLIC)
 
+cd $PUBLIC
 for FILE in $FILES; do
-  func=$(echo $FILE | tr '.' '_')
-  echo "generate $FILE.hpp ($func)"
-  xxd -n $func -i $PUBLIC/$FILE > $DIR/$FILE.hpp
+  echo "generate $FILE.hpp"
+
+  # use simple flag for old version of xxd
+  xxd -i $FILE > $DIR/$FILE.hpp
 done