0.1 release with build script finished
This commit is contained in:
parent
668ce74ea2
commit
efc5335d5f
1 changed files with 15 additions and 2 deletions
17
build.sh
17
build.sh
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
export debug="true"
|
||||
export debug="false"
|
||||
export version="0.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
|
||||
|
|
Reference in a new issue