Skip to content
Snippets Groups Projects
Commit 56aff392 authored by de Séréville Nicolas's avatar de Séréville Nicolas
Browse files

+ update nptool.sh configuration script

parent eb206b46
No related branches found
No related tags found
No related merge requests found
nptool.sh 100644 → 100755
#!/bin/bash #!/bin/bash
# source this file to setup your NPTOOL installation # find script path
CUR_DIR="$PWD" if [ -n "$ZSH_VERSION" ]; then
SCRIPTFILE=$0 SCRIPTPATH="$( cd "$( dirname "${(%):-%x}" )" && pwd )"
if [ "${SCRIPTFILE}" = "-bash" ] ; then elif [ -n "$BASH_VERSION" ]; then
SCRIPTFILE=${BASH_ARGV[0]} SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
elif [ "${SCRIPTFILE}" = "bash" ] ; then else
SCRIPTFILE=${BASH_ARGV[0]} echo "neither bash or zsh is used, abort"
fi exit 1
fi
SCRIPTPATH="${SCRIPTFILE}"
export NPTOOL=$(dirname $SCRIPTPATH) # export NPTOOL environment variable
export NPLIB=$NPTOOL/NPLib export NPTOOL=$SCRIPTPATH
NPARCH=$(uname) NPARCH=$(uname)
# mac os x case # mac os x case
...@@ -25,7 +24,7 @@ else ...@@ -25,7 +24,7 @@ else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NPTOOL/NPSimulation/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NPTOOL/NPSimulation/lib
fi fi
export PATH=$PATH:$NPLIB/bin export PATH=$PATH:$NPTOOL/NPLib/bin
export PATH=$PATH:$NPTOOL/NPSimulation/bin export PATH=$PATH:$NPTOOL/NPSimulation/bin
alias npt='cd $NPTOOL' alias npt='cd $NPTOOL'
......
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