allow build to be executed from anywhere

This commit is contained in:
davidovski 2024-03-21 11:31:48 +00:00
parent d3ab8fe00d
commit 8fc27973f8

View file

@ -1,6 +1,10 @@
#!/bin/sh
[ -d dist ] && rm -r dist
mkdir dist
script="$0"
path="$(dirname $(realpath "$script"))"
dist="$path/dist"
site="$path/site"
shblg -i site -o dist
[ ! -d "$dist" ] && mkdir "$dist"
shblg -i "$site" -o "$dist"