mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2025-01-14 12:57:29 -08:00
18 lines
300 B
Bash
Executable file
18 lines
300 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source ./scripts/check_os.sh
|
|
|
|
(cd ./generator; cargo build $1)
|
|
|
|
lib_suffix="so"
|
|
target="debug"
|
|
|
|
if [[ $os =~ "mac" ]]; then
|
|
lib_suffix="dylib"
|
|
fi
|
|
|
|
if [[ $1 =~ "release" ]]; then
|
|
target="release"
|
|
fi
|
|
|
|
cp -rf ./generator/target/$target/libgenerator.$lib_suffix lua/generator.so
|