vk0nline/build.sh

19 lines
396 B
Bash
Raw Permalink Normal View History

2021-07-16 06:58:22 +03:00
#!/bin/sh
2021-07-16 23:50:06 +03:00
if ! [[ -d ./bin/ ]]
then
mkdir bin
fi
2021-11-12 07:44:58 +03:00
ARCH=`uname -m`
OS=`uname | tr '[:upper:]' '[:lower:]'`
VERSION=`cat shard.yml | grep -m 1 'version: ' | sed -e 's/version: //g'`
2022-05-16 21:18:04 +03:00
if [ "$1" = "all" ]
then
echo "..in progress.."
else
echo "Build $VERSION for `uname` `uname -m`"
crystal build --progress --no-debug --release src/vk0nline.cr -o bin/vk0nline-$VERSION.$OS-$ARCH
fi