tmp update
This commit is contained in:
parent
b203bc87fc
commit
4e82b432f6
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
build/
|
||||
*.sh
|
||||
.vscode/
|
||||
*.sh
|
||||
|
17
my_config.sh
17
my_config.sh
@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cmd=${1}
|
||||
package=netcdfcxx_legacy
|
||||
address=/opt/stow
|
||||
taress=/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=${taress} ${package}
|
||||
fi
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo stow --dir=/opt/stow --target=/usr/local netcdfcxx_legacy
|
Loading…
Reference in New Issue
Block a user