14 lines
366 B
Bash
Executable File
14 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# bless you chris and andy <3
|
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
MNML_PATH=$(realpath "$DIR/../")
|
|
|
|
cd $MNML_PATH/server
|
|
echo "building /usr/local/mnml/bin/$VERSION"
|
|
cargo build --release
|
|
cp -r target/release/mnml /usr/local/mnml/bin/$VERSION
|
|
|
|
echo "linking current version"
|
|
ln -nfs "/usr/local/mnml/bin/$VERSION" /usr/local/mnml/bin/mnml
|