-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
15 lines (14 loc) · 796 Bytes
/
install.sh
File metadata and controls
15 lines (14 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -e #End script if any command fails
make -C Python
#Check if slender is already present:
echo "Compilation was successful"
if grep -q "SLENDER_PYTHON" ~/.bashrc; then echo "Slender body already present in bashrc"; exit 0; fi
#If SLENDER_PYTHON is not present in bashrc append these lines to it
echo "Appending paths to .bashrc"
cat <<EOF >> ~/.bashrc
# -------- ADDED BY SLENDERBODY INSTALLER ---------------
export SLENDER_ROOT=$(pwd)
export SLENDER_PYTHON=\$SLENDER_ROOT/Python
export PYTHONPATH=\${PYTHONPATH}:\$SLENDER_PYTHON:\$SLENDER_PYTHON/Dependencies:\$SLENDER_PYTHON/Dependencies/BatchedNBodyRPY:\$SLENDER_PYTHON/Dependencies/UAMMD_PSE_Python:\$SLENDER_PYTHON/Dependencies/NeighborSearch:\$SLENDER_PYTHON/cppmodules
# ----------------------------------------------------------
EOF