#!/bin/sh export debug="false" export version="0.2" if [ $debug = "true" ]; then echo "NOTE: This is going to be a development build. Please make sure you downloaded the point version from the 'about' tab if you wanted a stabler version." sed -i "s/VERZON/$version-$(git rev-parse HEAD)/g" src/main.rs cargo build sed -i "s/$version-$(git rev-parse HEAD)/VERZON/g" src/main.rs mv target/debug/lintc . echo "Built. Binary stored at lintc in current directory." fi if [ $debug = "false" ]; then echo "Building point version." sed -i "s/VERZON/$version/g" src/main.rs cargo build --release sed -i "s/$version/VERZON/g" src/main.rs mv target/release/lintc . echo "Built. Binary stored at lintc in current directory." fi