aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev
blob: f56ae249212e28bc11eee5db5c5be16b45bb30af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

cd pub/
python -m http.server 8080 &

cd ..

if [ -z "$1" ]; then
	find res/ md/ md-priv/ -type f -name "*.md" -or -name "*.js" | entr ./gen
else
	find res/ md/ md-priv/ -type f -name "*.md" -or -name "*.js" | entr ./genonly "$1"
fi