add build scripts.

This commit is contained in:
Miroslav Šedivý
2022-07-14 00:55:56 +02:00
parent a1f7b23f9d
commit 757437111e
10 changed files with 270 additions and 0 deletions

12
dev/fmt Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
cd "$(dirname "$0")"
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
fi
docker run -it --rm \
--entrypoint="go" \
-v "${PWD}/../:/src" \
neko_server_build fmt ./...