diff options
author | Jhen-Jie Hong <iainst0409@gmail.com> | 2023-08-19 05:41:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 05:41:32 +0800 |
commit | f63564adfaa157ca387071d6b9a06cfaef0ef576 (patch) | |
tree | 8b1451b6a49851bf0afad92b5cd54b1f08a8b95a | |
parent | 2d8b76a110d76ff6b5728ff0af8477531e4db60e (diff) |
server : update xxd usage for older versions compatibility (#2649)
* server : update xxd usage for older versions compatibility
* remove unused $func
-rwxr-xr-x | examples/server/deps.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/server/deps.sh b/examples/server/deps.sh index 1e9fe964..ea23e645 100755 --- a/examples/server/deps.sh +++ b/examples/server/deps.sh @@ -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 |