tmp update

This commit is contained in:
张壹 2022-03-16 08:48:41 +08:00
parent b9c140e5ef
commit 38a2cd7ccf
2 changed files with 2 additions and 18 deletions

3
.gitignore vendored
View File

@ -37,5 +37,6 @@ denoised.txt
test/ test/
build/ build/
.vscode/
.DS_Store .DS_Store
test/ *.sh

View File

@ -1,17 +0,0 @@
#!/bin/bash
cmd=${1}
package=wavelib
address=/opt/stow
targetdir=/usr/local
if [[ ${cmd} == "configure" && ! -d "build/" ]]; then
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "configure" ]]; then
cd build && rm -rf * && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "build" ]]; then
cd build && make
elif [[ ${cmd} == "install" ]]; then
cd build && sudo make install
sudo stow --dir=${address} --target=${targetdir} ${package}
fi