We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580e02e commit af4960aCopy full SHA for af4960a
examples/server/deps.sh
@@ -12,9 +12,17 @@ if [ "$1" != "--no-download" ]; then
12
fi
13
14
FILES=$(ls $PUBLIC)
15
+UNAME_S=$(uname -s)
16
17
for FILE in $FILES; do
18
func=$(echo $FILE | tr '.' '_')
19
echo "generate $FILE.hpp ($func)"
- xxd -n $func -i $PUBLIC/$FILE > $DIR/$FILE.hpp
20
+
21
+ if [ "$UNAME_S" == "Darwin" ]; then
22
+ xxd -n $func -i $PUBLIC/$FILE > $DIR/$FILE.hpp
23
+ elif [ "$UNAME_S" == "Linux" ]; then
24
+ xxd -i $PUBLIC/$FILE > $DIR/$FILE.hpp
25
+ replace_prefix="$(echo $PUBLIC | tr '/' '_')_"
26
+ sed -i "s/$replace_prefix//g" $DIR/$FILE.hpp
27
+ fi
28
done
0 commit comments