summaryrefslogtreecommitdiff
path: root/examples/server/deps.sh
diff options
context:
space:
mode:
authorOlivier Chafik <ochafik@users.noreply.github.com>2024-04-21 18:48:53 +0100
committerGitHub <noreply@github.com>2024-04-21 18:48:53 +0100
commit5cf5e7d490dfdd2e70bface2d35dfd14aa44b4fb (patch)
tree9af269d3fa30667bbaefc6978db94013d68b3f22 /examples/server/deps.sh
parent40f74e4d739e9250431cf339ae7588b28d8d0663 (diff)
`build`: generate hex dump of server assets during build (#6661)
* `build`: generate hex dumps of server assets on the fly * build: workaround lack of -n on gnu xxd * build: don't use xxd in cmake * build: don't call xxd from build.zig * build: more idiomatic hexing * build: don't use xxd in Makefile (od hackery instead) * build: avoid exceeding max cmd line limit in makefile hex dump * build: hex dump assets at cmake build time (not config time)
Diffstat (limited to 'examples/server/deps.sh')
-rwxr-xr-xexamples/server/deps.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/server/deps.sh b/examples/server/deps.sh
index ea23e645..d2837890 100755
--- a/examples/server/deps.sh
+++ b/examples/server/deps.sh
@@ -8,13 +8,3 @@ PUBLIC=$DIR/public
echo "download js bundle files"
curl https://npm.reversehttp.com/@preact/signals-core,@preact/signals,htm/preact,preact,preact/hooks > $PUBLIC/index.js
echo >> $PUBLIC/index.js # add newline
-
-FILES=$(ls $PUBLIC)
-
-cd $PUBLIC
-for FILE in $FILES; do
- echo "generate $FILE.hpp"
-
- # use simple flag for old version of xxd
- xxd -i $FILE > $DIR/$FILE.hpp
-done