server : update xxd usage for older versions compatibility

This commit is contained in:
Jhen 2023-08-18 06:16:43 +08:00
parent a73ccf1aa3
commit 15f7448611

View file

@ -11,8 +11,11 @@ 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 '.' '_') func=$(echo $FILE | tr '.' '_')
echo "generate $FILE.hpp ($func)" 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