Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
Anders Lindh Olsson
e3-require
Commits
ed71f111
Commit
ed71f111
authored
6 years ago
by
Jeong Han Lee
Browse files
Options
Downloads
Patches
Plain Diff
remove e3.cfg dependency
parent
1b21949c
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
configure/E3/RULES_REQUIRE
+1
-1
1 addition, 1 deletion
configure/E3/RULES_REQUIRE
tools/setE3Env.bash
+78
-69
78 additions, 69 deletions
tools/setE3Env.bash
with
79 additions
and
70 deletions
configure/E3/RULES_REQUIRE
+
1
−
1
View file @
ed71f111
...
...
@@ -28,7 +28,7 @@ requireconf: e3-site-path e3-site-conf e3-require-path
$(QUIET) $(SUDO) install -m 644 $(E3_MODULE_SRC_PATH)/App/tools/driver.makefile $(E3_REQUIRE_TOOLS)/
$(QUIET) $(SUDO) install -m 755 $(E3_SHELL_FILES) $(E3_REQUIRE_BIN)/
$(QUIET) $(SUDO) install -m 644 $(E3_IOC_CFG_FILES) $(E3_REQUIRE_BIN)/
$(QUIET) $(SUDO) install -m 644 $(E3_REQUIRE_CONF_FILES) $(E3_REQUIRE_CONFIG)/
#
$(QUIET) $(SUDO) install -m 644 $(E3_REQUIRE_CONF_FILES) $(E3_REQUIRE_CONFIG)/
e3-require-path:
...
...
This diff is collapsed.
Click to expand it.
tools/setE3Env.bash
+
78
−
69
View file @
ed71f111
...
...
@@ -19,9 +19,9 @@
# Shell : setE3Env.bash
# Author : Jeong Han Lee
# email : jeonghan.lee@gmail.com
# date :
Wedne
sday, November
7 16:54:32
CET 2018
# date :
Thur
sday, November
29 22:49:11
CET 2018
#
# version : 0.7.
0
# version : 0.7.
1
#
#
...
...
@@ -190,6 +190,7 @@ fi
THIS_SRC
=
${
BASH_SOURCE
[0]
}
if
[
-L
$THIS_SRC
]
;
then
SRC_PATH
=
"
$(
cd
-P
"
$(
dirname
$(
readlink
-f
"
$THIS_SRC
"
)
)
"
&&
pwd
)
"
else
...
...
@@ -212,107 +213,115 @@ SRC_NAME=${THIS_SRC##*/}
GENERATED_E3_CFG
=
$SRC_PATH
/e3.cfg
# don't install e3.cfg when make install is executed,
# so all varaibles are found according to the existent location
# the symbolic link path doesn't work
#
if
[
!
-f
${
GENERATED_E3_CFG
}
]
;
then
printf
"
\n
Whoops! The %s is missing.
\n
"
"
${
GENERATED_E3_CFG
}
"
;
printf
"
\n
"
;
printf
"One should build require before sourcing %s
\n\n
"
"
$SRC_NAME
"
;
e3_REQUIRE_BIN_NAME
=
${
SRC_PATH
##*/
}
E3_REQUIRE_LOCATION
=
${
SRC_PATH
%/*
}
E3_REQUIRE_VERSION
=
${
E3_REQUIRE_LOCATION
##*/
}
e3_REQUIRE_PATH
=
${
E3_REQUIRE_LOCATION
%/*
}
E3_REQUIRE_NAME
=
${
e3_REQUIRE_PATH
##*/
}
EPICS_BASE
=
${
e3_REQUIRE_PATH
%/*
}
else
# in e3-require/tools
# in case, source within e3-require
set
-a
source
$GENERATED_E3_CFG
set
+a
# shared libs seach directory by require.c
#
# EPICS_DRIVER_PATH
EPICS_BASE
=
${
DEFAULT_EPICS_BASE
}
E3_REQUIRE_NAME
=
${
DEFAULT_REQUIRE_NAME
}
E3_REQUIRE_VERSION
=
${
DEFAULT_REQUIRE_VERSION
}
E3_REQUIRE_LOCATION
=
${
EPICS_BASE
}
/
${
E3_REQUIRE_NAME
}
/
${
E3_REQUIRE_VERSION
}
fi
epics_host_arch_file
=
"
${
EPICS_BASE
}
/startup/EpicsHostArch.pl"
if
[
-e
"
$epics_host_arch_file
"
]
;
then
EPICS_HOST_ARCH
=
$(
"
${
EPICS_BASE
}
/startup/EpicsHostArch.pl"
)
else
EPICS_HOST_ARCH
=
$(
perl
${
EPICS_BASE
}
/lib/perl/EpicsHostArch.pl
)
fi
epics_host_arch_file
=
"
${
EPICS_BASE
}
/startup/EpicsHostArch.pl"
if
[
-e
"
$epics_host_arch_file
"
]
;
then
EPICS_HOST_ARCH
=
$(
"
${
EPICS_BASE
}
/startup/EpicsHostArch.pl"
)
else
EPICS_HOST_ARCH
=
$(
perl
${
EPICS_BASE
}
/lib/perl/EpicsHostArch.pl
)
fi
E3_REQUIRE_LOCATION
=
${
EPICS_BASE
}
/
${
E3_REQUIRE_NAME
}
/
${
E3_REQUIRE_VERSION
}
E3_REQUIRE_BIN
=
${
E3_REQUIRE_LOCATION
}
/bin
E3_REQUIRE_LIB
=
${
E3_REQUIRE_LOCATION
}
/lib
E3_REQUIRE_INC
=
${
E3_REQUIRE_LOCATION
}
/include
E3_REQUIRE_DB
=
${
E3_REQUIRE_LOCATION
}
/db
E3_REQUIRE_DBD
=
${
E3_REQUIRE_LOCATION
}
/dbd
E3_REQUIRE_BIN
=
${
E3_REQUIRE_LOCATION
}
/bin
E3_REQUIRE_LIB
=
${
E3_REQUIRE_LOCATION
}
/lib
E3_REQUIRE_INC
=
${
E3_REQUIRE_LOCATION
}
/include
E3_REQUIRE_DB
=
${
E3_REQUIRE_LOCATION
}
/db
E3_REQUIRE_DBD
=
${
E3_REQUIRE_LOCATION
}
/dbd
E3_SITEMODS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteMods
E3_SITELIBS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteLibs
E3_SITEAPPS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteApps
E3_SITEMODS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteMods
E3_SITELIBS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteLibs
E3_SITEAPPS_PATH
=
${
E3_REQUIRE_LOCATION
}
/siteApps
EPICS_DRIVER_PATH
=
${
E3_SITEMODS_PATH
}
:
${
E3_SITEAPPS_PATH
}
# shared libs seach directory by require.c
#
# EPICS_DRIVER_PATH
EPICS_DRIVER_PATH
=
${
E3_SITEMODS_PATH
}
:
${
E3_SITEAPPS_PATH
}
export
EPICS_BASE
export
E3_REQUIRE_NAME
export
E3_REQUIRE_VERSION
export
EPICS_HOST_ARCH
export
E3_REQUIRE_LOCATION
export
EPICS_BASE
export
E3_REQUIRE_NAME
export
E3_REQUIRE_VERSION
export
E3_REQUIRE_BIN
export
E3_REQUIRE_LIB
export
E3_REQUIRE_INC
export
E3_REQUIRE_DB
export
E3_REQUIRE_DBD
export
EPICS_HOST_ARCH
export
E3_REQUIRE_LOCATION
export
E3_SITEMODS_PATH
export
E3_SITELIBS_PATH
export
E3_SITEAPPS_PATH
export
E3_REQUIRE_BIN
export
E3_REQUIRE_LIB
export
E3_REQUIRE_INC
export
E3_REQUIRE_DB
export
E3_REQUIRE_DBD
export
E3_SITEMODS_PATH
export
E3_SITELIBS_PATH
export
E3_SITEAPPS_PATH
export
EPICS_DRIVER_PATH
export
EPICS_DRIVER_PATH
old_path
=
${
PATH
}
E3_PATH
=
"
${
E3_REQUIRE_BIN
}
:
${
EPICS_BASE
}
/bin/
${
EPICS_HOST_ARCH
}
"
PATH
=
$(
set_variable
"
${
old_path
}
"
"
${
E3_PATH
}
"
)
old_path
=
${
PATH
}
E3_PATH
=
"
${
E3_REQUIRE_BIN
}
:
${
EPICS_BASE
}
/bin/
${
EPICS_HOST_ARCH
}
"
# # We have a problem, if we have the multiple versions of one module, we have the same executable file names.
# # "echo" selects the lower version number by default. And if the version is used with a string,
# # we don't rely upon echo result.
# # Rethink how we handle each binary files within a module
# #
# E3_SITELIBS_BINS=`echo ${E3_SITELIBS_PATH}/*_bin`;
PATH
=
$(
set_variable
"
${
old_path
}
"
"
${
E3_PATH
}
"
)
# for each_bins in ${E3_SITELIBS_BINS}; do
# PATH="${PATH}:$each_bins/${EPICS_HOST_ARCH}"
# # echo $each_bins
# done
# # We have a problem, if we have the multiple versions of one module, we have the same executable file names.
# # "echo" selects the lower version number by default. And if the version is used with a string,
# # we don't rely upon echo result.
# # Rethink how we handle each binary files within a module
# #
# E3_SITELIBS_BINS=`echo ${E3_SITELIBS_PATH}/*_bin`;
export
PATH
# for each_bins in ${E3_SITELIBS_BINS}; do
# PATH="${PATH}:$each_bins/${EPICS_HOST_ARCH}"
# # echo $each_bins
# done
old_ld_path
=
${
LD_LIBRARY_PATH
}
E3_LD_LIBRARY_PATH
=
"
${
EPICS_BASE
}
/lib/
${
EPICS_HOST_ARCH
}
:
${
E3_REQUIRE_LIB
}
/
${
EPICS_HOST_ARCH
}
:
${
E3_SITELIBS_PATH
}
/
${
EPICS_HOST_ARCH
}
"
export
PATH
LD_LIBRARY_PATH
=
$(
set_variable
"
${
old_ld_path
}
"
"
${
E3_
LD_LIBRARY_PATH
}
"
)
export
LD_LIBRARY_PATH
old_ld_path
=
${
LD_LIBRARY_PATH
}
E3_
LD_LIBRARY_PATH
=
"
${
EPICS_BASE
}
/lib/
${
EPICS_HOST_ARCH
}
:
${
E3_REQUIRE_LIB
}
/
${
EPICS_HOST_ARCH
}
:
${
E3_SITELIBS_PATH
}
/
${
EPICS_HOST_ARCH
}
"
printf
"
\n
Set the ESS EPICS Environment as follows:
\n
"
;
printf
"THIS Source NAME : %s
\n
"
"
${
SRC_NAME
}
"
printf
"THIS Source PATH : %s
\n
"
"
${
SRC_PATH
}
"
printf
"EPICS_BASE : %s
\n
"
"
${
EPICS_BASE
}
"
printf
"EPICS_HOST_ARCH : %s
\n
"
"
${
EPICS_HOST_ARCH
}
"
printf
"E3_REQUIRE_LOCATION : %s
\n
"
"
${
E3_REQUIRE_LOCATION
}
"
printf
"PATH : %s
\n
"
"
${
PATH
}
"
printf
"LD_LIBRARY_PATH : %s
\n
"
"
${
LD_LIBRARY_PATH
}
"
printf
"
\n
"
;
printf
"Enjoy E3!
\n
"
;
LD_LIBRARY_PATH
=
$(
set_variable
"
${
old_ld_path
}
"
"
${
E3_LD_LIBRARY_PATH
}
"
)
export
LD_LIBRARY_PATH
printf
"
\n
Set the ESS EPICS Environment as follows:
\n
"
;
printf
"THIS Source NAME : %s
\n
"
"
${
SRC_NAME
}
"
printf
"THIS Source PATH : %s
\n
"
"
${
SRC_PATH
}
"
printf
"EPICS_BASE : %s
\n
"
"
${
EPICS_BASE
}
"
printf
"EPICS_HOST_ARCH : %s
\n
"
"
${
EPICS_HOST_ARCH
}
"
printf
"E3_REQUIRE_LOCATION : %s
\n
"
"
${
E3_REQUIRE_LOCATION
}
"
printf
"PATH : %s
\n
"
"
${
PATH
}
"
printf
"LD_LIBRARY_PATH : %s
\n
"
"
${
LD_LIBRARY_PATH
}
"
printf
"
\n
"
;
printf
"Enjoy E3!
\n
"
;
fi
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