Skip to content

Commit

Permalink
server : update xxd usage for older versions compatibility (ggerganov…
Browse files Browse the repository at this point in the history
…#2649)

* server : update xxd usage for older versions compatibility

* remove unused $func
  • Loading branch information
jhen0409 authored Aug 18, 2023
1 parent 2d8b76a commit f63564a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/server/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f63564a

Please sign in to comment.