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
5d7b8e6e
"README" did not exist on "eab06184dc77c3eddcdc8a6593e051eb086b8738"
Commit
5d7b8e6e
authored
16 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1243:
Added support for sbin
parent
4cca6977
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
LCS/Tools/src/Makefile.am
+3
-3
3 additions, 3 deletions
LCS/Tools/src/Makefile.am
LCS/Tools/src/lofarinit.csh
+10
-6
10 additions, 6 deletions
LCS/Tools/src/lofarinit.csh
LCS/Tools/src/lofarinit.sh
+15
-9
15 additions, 9 deletions
LCS/Tools/src/lofarinit.sh
with
28 additions
and
18 deletions
LCS/Tools/src/Makefile.am
+
3
−
3
View file @
5d7b8e6e
bin_PROGRAMS
=
LimitExec pkgdep
s
bin_PROGRAMS
=
LimitExec pkgdep
LimitExec_SOURCES
=
LimitExec.cc
pkgdep_SOURCES
=
pkgdep.cc
scriptdir
=
$(
bindir
)
scriptdir
=
$(
s
bindir
)
dist_script_SCRIPTS
=
lofarcvsmv lofarcvsx makedep.sh finddep makedoc checkrun
glishdir
=
$(
libexecdir
)
/glish
dist_glish_SCRIPTS
=
pythondir
=
$(
bindir
)
pythondir
=
$(
s
bindir
)
dist_python_SCRIPTS
=
makePackage.py
\
makeClass.py
\
makeTest.py
...
...
This diff is collapsed.
Click to expand it.
LCS/Tools/src/lofarinit.csh
+
10
−
6
View file @
5d7b8e6e
...
...
@@ -45,8 +45,10 @@ else
if ($?LOFARROOT) then
set a_path = `echo $LOFARROOT | sed -e 's/\./\\\./g'`
if ($?PATH) then
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}"'$%%'`
foreach bintp (bin sbin)
set a_bin = "$a_path/$bintp"
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
end
endif
if ($?LD_LIBRARY_PATH) then
set a_lib = "$a_path/lib"
...
...
@@ -65,8 +67,10 @@ else
# it).
set a_path = `echo $LOFARROOT | sed -e 's/\./\\\./g'`
if ($?PATH) then
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}"'$%%'`
foreach bintp (bin sbin)
set a_bin = "$a_path/$bintp"
setenv PATH `echo $PATH | sed -e "s%:${a_bin}:%:%g" -e "s%^${a_bin}:%%" -e "s%:${a_bin}"'$%%' -e "s%^${a_bin}"'$%%'`
end
endif
if ($?LD_LIBRARY_PATH) then
set a_lib = "$a_path/lib"
...
...
@@ -79,9 +83,9 @@ else
# Add the path to the standard paths.
if (! $?PATH) then
setenv PATH $LOFARROOT/bin
setenv PATH $LOFARROOT/bin
:$LOFARROOT/sbin
else
setenv PATH $LOFARROOT/bin:$PATH
setenv PATH $LOFARROOT/bin:$
LOFARROOT/sbin:$
PATH
endif
if (! $?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH $LOFARROOT/lib
...
...
This diff is collapsed.
Click to expand it.
LCS/Tools/src/lofarinit.sh
+
15
−
9
View file @
5d7b8e6e
...
...
@@ -40,9 +40,12 @@ fi
# Take care that a possible . is preceeded by a backslash (for the later sed).
if
[
"
$LOFARROOT
"
!=
""
]
;
then
lfr_path
=
`
echo
$LOFARROOT
|
sed
-e
's/\./\\\./g'
`
lfr_bin
=
"
$lfr_path
/bin"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$lfr_bin
:%:%g"
-e
"s%^
$lfr_bin
:%%"
-e
"s%:
$lfr_bin$%
%"
-e
"s%^
$lfr_bin$%
%"
`
export
PATH
for
bintp
in
bin sbin
do
lfr_bin
=
"
$lfr_path
/
$bintp
"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$lfr_bin
:%:%g"
-e
"s%^
$lfr_bin
:%%"
-e
"s%:
$lfr_bin$%
%"
-e
"s%^
$lfr_bin$%
%"
`
export
PATH
done
lfr_lib
=
"
$lfr_path
/lib"
LD_LIBRARY_PATH
=
`
echo
$LD_LIBRARY_PATH
|
sed
-e
"s%:
$lfr_lib
:%:%g"
-e
"s%^
$lfr_lib
:%%"
-e
"s%:
$lfr_lib$%
%"
-e
"s%^
$lfr_lib$%
%"
`
export
LD_LIBRARY_PATH
...
...
@@ -62,9 +65,12 @@ else
# Also strip root from the current paths (in case it is contained).
lfr_path
=
`
echo
$LOFARROOT
|
sed
-e
's/\./\\\./g'
`
lfr_bin
=
"
$lfr_path
/bin"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$lfr_bin
:%:%g"
-e
"s%^
$lfr_bin
:%%"
-e
"s%:
$lfr_bin$%
%"
-e
"s%^
$lfr_bin$%
%"
`
export
PATH
for
bintp
in
bin sbin
do
lfr_bin
=
"
$lfr_path
/
$bintp
"
PATH
=
`
echo
$PATH
|
sed
-e
"s%:
$lfr_bin
:%:%g"
-e
"s%^
$lfr_bin
:%%"
-e
"s%:
$lfr_bin$%
%"
-e
"s%^
$lfr_bin$%
%"
`
export
PATH
done
lfr_lib
=
"
$lfr_path
/lib"
LD_LIBRARY_PATH
=
`
echo
$LD_LIBRARY_PATH
|
sed
-e
"s%:
$lfr_lib
:%:%g"
-e
"s%^
$lfr_lib
:%%"
-e
"s%:
$lfr_lib$%
%"
-e
"s%^
$lfr_lib$%
%"
`
export
LD_LIBRARY_PATH
...
...
@@ -73,15 +79,15 @@ else
export
PYTHONPATH
fi
# Add to the paths if the bin directory ex
s
ists.
# Add to the paths if the bin directory exists.
if
[
"
$LOFARROOT
"
=
""
-o
!
-d
$LOFARROOT
/bin
]
;
then
echo
"No LOFARROOT defined"
else
# Add the path to the standard paths.
if
[
"
$PATH
"
=
""
]
;
then
PATH
=
$LOFARROOT
/bin
PATH
=
$LOFARROOT
/bin
:
$LOFARROOT
/sbin
else
PATH
=
$LOFARROOT
/bin:
$PATH
PATH
=
$LOFARROOT
/bin:
$
LOFARROOT
/sbin:
$
PATH
fi
export
PATH
if
[
"
$LD_LIBRARY_PATH
"
=
""
]
;
then
...
...
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