initial upload

This commit is contained in:
2021-08-03 19:42:54 +08:00
parent 87d45d82df
commit 499878f944
9 changed files with 16879 additions and 0 deletions

17
config.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
cmd=${1}
package=tetgen
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