Skip to content
Snippets Groups Projects
Commit 4e84fcfd authored by Ger van Diepen's avatar Ger van Diepen
Browse files

BugID: 630

Create a .glishrc.post to add the libexec/glish of LOFAR to the glish path
parent 4862e54e
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,13 @@ else
setenv LD_LIBRARY_PATH $LOFARROOT/lib:$LD_LIBRARY_PATH
endif
# Create a .glishrc.post in the HOME directory to append
# the LOFAR libexec to the glish path.
if ( -f $HOME/.glishrc.post ) then
mv $HOME/.glishrc.post $HOME/.glishrc.post-old
endif
echo "system.path.include := [system.path.include, '$LOFARROOT/libexec/glish']" > $HOME/.glishrc.post
# Now define the new LOFARDATAROOT
set data_path = `echo $LOFARROOT | sed -e 's/\/installed.*$//'`
if ( ! -d $data_path/data ) then
......
......@@ -93,5 +93,12 @@ else
fi
fi
# Create a .glishrc.post in the HOME directory to append
# the LOFAR libexec to the glish path.
if [ -f $HOME/.glishrc.post ]; then
mv $HOME/.glishrc.post $HOME/.glishrc.post-old
fi
echo "system.path.include := [system.path.include, '$LOFARROOT/libexec/glish']" > $HOME/.glishrc.post
# Clean up
unset lfr_root lfr_nroot lfr_bin lfr_lib lfr_path
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