Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
48213e4a
Commit
48213e4a
authored
19 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
%[ER: 253]%
Use LOFARROOT instead of LOFARPATH
parent
49caab7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCS/Tools/src/lofarinit.csh
+10
-10
10 additions, 10 deletions
LCS/Tools/src/lofarinit.csh
LCS/Tools/src/lofarinit.sh
+11
-11
11 additions, 11 deletions
LCS/Tools/src/lofarinit.sh
with
21 additions
and
21 deletions
LCS/Tools/src/lofarinit.csh
+
10
−
10
View file @
48213e4a
...
@@ -28,21 +28,21 @@
...
@@ -28,21 +28,21 @@
# The actual value is filled in by make install (see Makefile.am).
# The actual value is filled in by make install (see Makefile.am).
set a_root = . #filled in by install
set a_root = . #filled in by install
# First strip the current LOFAR
PATH
from PATH and LD_LIBRARY_PATH
# First strip the current LOFAR
ROOT
from PATH and LD_LIBRARY_PATH
# Take care that a possible . is preceeded by a backslash.
# Take care that a possible . is preceeded by a backslash.
if (! $?LOFAR
PATH
) then
if (! $?LOFAR
ROOT
) then
set a_path = `echo $LOFAR
PATH
| sed -e 's/\./\\\./g'`
set a_path = `echo $LOFAR
ROOT
| sed -e 's/\./\\\./g'`
set a_bin = "$a_path/bin"
set a_bin = "$a_path/bin"
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
set a_lib = "$a_path/lib"
set a_lib = "$a_path/lib"
setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed -e "s%:${a_lib}:%:%g" -e "s%^${a_lib}:%%" -e "s%:${a_lib}"'$%%' -e "s%^${a_lib}"'$%%'`
setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed -e "s%:${a_lib}:%:%g" -e "s%^${a_lib}:%%" -e "s%:${a_lib}"'$%%' -e "s%^${a_lib}"'$%%'`
endif
endif
# Now define the new LOFAR
PATH
# Now define the new LOFAR
ROOT
setenv LOFAR
PATH
`cd $a_root; pwd` # make path absolute
setenv LOFAR
ROOT
`cd $a_root; pwd` # make path absolute
# Also strip this path from the current paths (in case it is contained in it).
# Also strip this path from the current paths (in case it is contained in it).
set a_path = `echo $LOFAR
PATH
| sed -e 's/\./\\\./g'`
set a_path = `echo $LOFAR
ROOT
| sed -e 's/\./\\\./g'`
set a_bin = "$a_path/bin"
set a_bin = "$a_path/bin"
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
set a_lib = "$a_path/lib"
set a_lib = "$a_path/lib"
...
@@ -50,12 +50,12 @@ setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed -e "s%:${a_lib}:%:%g" -e "s%
...
@@ -50,12 +50,12 @@ setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed -e "s%:${a_lib}:%:%g" -e "s%
# Add the path to the standard paths.
# Add the path to the standard paths.
if (! $?PATH) then
if (! $?PATH) then
setenv PATH $LOFAR
PATH
/bin
setenv PATH $LOFAR
ROOT
/bin
else
else
setenv PATH $LOFAR
PATH
/bin:$PATH
setenv PATH $LOFAR
ROOT
/bin:$PATH
endif
endif
if (! $?LD_LIBRARY_PATH) then
if (! $?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH $LOFAR
PATH
/lib
setenv LD_LIBRARY_PATH $LOFAR
ROOT
/lib
else
else
setenv LD_LIBRARY_PATH $LOFAR
PATH
/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH $LOFAR
ROOT
/lib:$LD_LIBRARY_PATH
endif
endif
This diff is collapsed.
Click to expand it.
LCS/Tools/src/lofarinit.sh
+
11
−
11
View file @
48213e4a
...
@@ -28,10 +28,10 @@
...
@@ -28,10 +28,10 @@
# The actual value is filled in by make install (see Makefile.am).
# The actual value is filled in by make install (see Makefile.am).
a_root
=
.
#filled in by install
a_root
=
.
#filled in by install
# First strip the current LOFAR
PATH
from PATH and LD_LIBRARY_PATH
# First strip the current LOFAR
ROOT
from PATH and LD_LIBRARY_PATH
# Take care that a possible . is preceeded by a backslash.
# Take care that a possible . is preceeded by a backslash.
if
[
"
$LOFAR
PATH
"
!=
""
]
;
then
if
[
"
$LOFAR
ROOT
"
!=
""
]
;
then
a_path
=
`
echo
$LOFAR
PATH
|
sed
-e
's/\./\\\./g'
`
a_path
=
`
echo
$LOFAR
ROOT
|
sed
-e
's/\./\\\./g'
`
a_bin
=
"
$a_path
/bin"
a_bin
=
"
$a_path
/bin"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$a_bin
:%:%g"
-e
"s%^
$a_bin
:%%"
-e
"s%:
$a_bin$%
%"
-e
"s%^
$a_bin$%
%"
`
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$a_bin
:%:%g"
-e
"s%^
$a_bin
:%%"
-e
"s%:
$a_bin$%
%"
-e
"s%^
$a_bin$%
%"
`
export
PATH
export
PATH
...
@@ -40,12 +40,12 @@ if [ "$LOFARPATH" != "" ]; then
...
@@ -40,12 +40,12 @@ if [ "$LOFARPATH" != "" ]; then
export
LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
fi
fi
# Now define the new LOFAR
PATH
# Now define the new LOFAR
ROOT
LOFAR
PATH
=
`
cd
$a_root
;
pwd
`
# make path absolute
LOFAR
ROOT
=
`
cd
$a_root
;
pwd
`
# make path absolute
export
LOFAR
PATH
export
LOFAR
ROOT
# Also strip this path from the current paths (in case it is contained in it).
# Also strip this path from the current paths (in case it is contained in it).
a_path
=
`
echo
$LOFAR
PATH
|
sed
-e
's/\./\\\./g'
`
a_path
=
`
echo
$LOFAR
ROOT
|
sed
-e
's/\./\\\./g'
`
a_bin
=
"
$a_path
/bin"
a_bin
=
"
$a_path
/bin"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$a_bin
:%:%g"
-e
"s%^
$a_bin
:%%"
-e
"s%:
$a_bin$%
%"
-e
"s%^
$a_bin$%
%"
`
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$a_bin
:%:%g"
-e
"s%^
$a_bin
:%%"
-e
"s%:
$a_bin$%
%"
-e
"s%^
$a_bin$%
%"
`
export
PATH
export
PATH
...
@@ -55,14 +55,14 @@ export LD_LIBRARY_PATH
...
@@ -55,14 +55,14 @@ export LD_LIBRARY_PATH
# Add the path to the standard paths.
# Add the path to the standard paths.
if
[
"
$PATH
"
=
""
]
;
then
if
[
"
$PATH
"
=
""
]
;
then
PATH
=
$LOFAR
PATH
/bin
PATH
=
$LOFAR
ROOT
/bin
else
else
PATH
=
$LOFAR
PATH
/bin:
$PATH
PATH
=
$LOFAR
ROOT
/bin:
$PATH
fi
fi
export
PATH
export
PATH
if
[
"
$LD_LIBRARY_PATH
"
=
""
]
;
then
if
[
"
$LD_LIBRARY_PATH
"
=
""
]
;
then
LD_LIBRARY_PATH
=
$LOFAR
PATH
/lib
LD_LIBRARY_PATH
=
$LOFAR
ROOT
/lib
else
else
LD_LIBRARY_PATH
=
$LOFAR
PATH
/lib:
$LD_LIBRARY_PATH
LD_LIBRARY_PATH
=
$LOFAR
ROOT
/lib:
$LD_LIBRARY_PATH
fi
fi
export
LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment