summaryrefslogtreecommitdiff
path: root/examples/server/deps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/deps.sh')
-rwxr-xr-xexamples/server/deps.sh8
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