This repository has been archived on 2023-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
lintc/build.sh

20 lines
730 B
Bash
Executable file

#!/bin/sh
export debug="true"
export version="0.1.1"
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