Skip to content
Snippets Groups Projects
Commit 46127587 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* adding csh script for non standard system

        - csh is so poor even alias cannot be defined
        - pretty much useless
parent ea38b9c4
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env tcsh
printf "WARNING: Using a shell that does not comply with POSIX is bad practice. Switch to bash !\n"
# endifnd script path
set rootdir=`dirname $0` # may be relative path
set scriptpath=`cd $rootdir && pwd` # ensure absolute path
#echo $SCRIPTPATH
# export NPTOOL environment variable
setenv NPTOOL $scriptpath
printenv NPTOOL
set NPARCH=`uname`
# mac os x case
if ( "${NPARCH}" == "Darwin" ) then
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${NPTOOL}/NPLib/lib
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${NPTOOL}/NPSimulation/lib
else
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH":$NPTOOL/NPLib/lib"
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH":$NPTOOL/NPSimulation/lib"
endif
setenv PATH $PATH":$NPTOOL/NPLib/bin"
setenv PATH $PATH":$NPTOOL/NPSimulation/bin"
alias npt echo "alias not supported under tcsh, switch to bash"
alias npl echo "alias not supported under tcsh, switch to bash"
alias nps echo "alias not supported under tcsh, switch to bash"
alias npa_not_supported npa is now longer supported, use npp instead
alias npa echo $npa_not_supported
alias npp echo "alias not supported under tcsh, switch to bash"
setenv Geant4_DIR $G4LIB
setenv NPLib_DIR $NPTOOL/NPLib
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