Skip to content
Snippets Groups Projects
Commit ccc13add authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding openfpm_vars relocation

parent 2dbd9dde
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,9 @@ while getopts di:smghc:nul FLAG; do ...@@ -76,6 +76,9 @@ while getopts di:smghc:nul FLAG; do
echo "No linear algebra" echo "No linear algebra"
no_lin=1 no_lin=1
;; ;;
v)
echo "Relocating openfpm_vars file $OPTARG"
VARS_FILE_LOCATION=$OPTARG
h) #show help h) #show help
HELP HELP
;; ;;
...@@ -564,12 +567,16 @@ bash_library="$bash_library\"" ...@@ -564,12 +567,16 @@ bash_library="$bash_library\""
# in cygwin we have to add to PATH additional directories # in cygwin we have to add to PATH additional directories
echo "$bash_path" > $HOME/openfpm_vars if [ x"VARS_FILE_LOCATION" == x"" ]; then
echo "$bash_library" >> $HOME/openfpm_vars VARS_FILE_LOCATION=$HOME
echo "export PURE_PYTHON=1" >> $HOME/openfpm_vars fi
echo "$bash_path" > $VARS_FILE_LOCATION/openfpm_vars
echo "$bash_library" >> $VARS_FILE_LOCATION/openfpm_vars
echo "export PURE_PYTHON=1" >> $VARS_FILE_LOCATION/openfpm_vars
if [ x"$platform" = x"osx" ]; then if [ x"$platform" = x"osx" ]; then
echo "TMPDIR=/tmp/" >> $HOME/openfpm_vars echo "TMPDIR=/tmp/" >> $VARS_FILE_LOCATION/openfpm_vars
fi fi
echo -e "$installation_report" echo -e "$installation_report"
...@@ -588,12 +595,12 @@ fi ...@@ -588,12 +595,12 @@ fi
echo "" echo ""
if [ x"$platform" = x"linux" ]; then if [ x"$platform" = x"linux" ]; then
echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bashrc" echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $VARS_FILE_LOCATION/.bashrc"
else else
echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bash_profile" echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $VARS_FILE_LOCATION/.bash_profile"
fi fi
echo "" echo ""
echo -e "\033[1m source $HOME/openfpm_vars \033[0m" echo -e "\033[1m source $VARS_FILE_LOCATION/openfpm_vars \033[0m"
echo "" echo ""
echo "" echo ""
echo -e "Remember to do: \033[91;5;1m make install \033[0m" echo -e "Remember to do: \033[91;5;1m make install \033[0m"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment