Commits

Britton Smith committed f5fa0cd

Added option to install script to install to currently set YT_DEST.
This is done by setting REINST_YT to 1.

  • Participants
  • Parent commits 554d144
  • Branches yt

Comments (0)

Files changed (1)

doc/install_script.sh

 # And, feel free to drop me a line: matthewturk@gmail.com
 #
 
-DEST_SUFFIX="yt-`uname -m`"
-DEST_DIR="`pwd`/${DEST_SUFFIX/ /}"   # Installation location
+if [ ${REINST_YT} -eq 1 ] && [ -n ${YT_DEST} ]
+then
+    DEST_DIR=${YT_DEST}
+else
+    DEST_SUFFIX="yt-`uname -m`"
+    DEST_DIR="`pwd`/${DEST_SUFFIX/ /}"   # Installation location
+fi
 BRANCH="yt" # This is the branch to which we will forcibly update.
 
 # Here's where you put the HDF5 path if you like; otherwise it'll download it