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

21 lines
729 B
Bash
Raw Normal View History

2022-01-27 08:01:45 +00:00
#!/bin/sh
2022-01-28 19:22:17 +00:00
export debug="false"
2022-01-28 19:04:26 +00:00
export version="0.2"
2022-01-27 08:01:45 +00:00
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."
2022-01-27 18:23:06 +00:00
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."
2022-01-27 08:01:45 +00:00
fi