Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ip6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
EIC
detectors
ip6
Commits
b7636c33
Commit
b7636c33
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Create setup.sh and install into ip6 compact directory
parent
b3df04d8
Branches
Branches containing commit
No related tags found
1 merge request
!113
Create setup.sh and install into ip6 compact directory
Pipeline
#33620
failed
2 years ago
Stage: config
Stage: initialize
Stage: test
Stage: docs
Stage: collect
Stage: deploy
Pipeline: athena
#33622
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+14
-0
14 additions, 0 deletions
CMakeLists.txt
templates/setup.sh.in
+15
-0
15 additions, 0 deletions
templates/setup.sh.in
with
29 additions
and
0 deletions
CMakeLists.txt
+
14
−
0
View file @
b7636c33
...
...
@@ -69,3 +69,17 @@ install(DIRECTORY ip6/
install
(
FILES eic_ip6.xml
DESTINATION share/
${
PROJECT_NAME
}
/
)
#-----------------------------------------------------------------------------------
# Configure and install beamline setup script
#
execute_process
(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
configure_file
(
templates/setup.sh.in
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.sh @ONLY
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.sh
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/ip6
)
This diff is collapsed.
Click to expand it.
templates/setup.sh.in
0 → 100644
+
15
−
0
View file @
b7636c33
#!/bin/sh
export
BEAMLINE
=
@PROJECT_NAME@
export
BEAMLINE_PATH
=
@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@
export
BEAMLINE_CONFIG
=
@PROJECT_NAME@
export
BEAMLINE_VERSION
=
@GIT_BRANCH@
## note: we will phase out the JUGGLER_* flavor of variables in the future
export
JUGGLER_BEAMLINE
=
$BEAMLINE
export
JUGGLER_BEAMLINE_CONFIG
=
$BEAMLINE_CONFIG
export
JUGGLER_BEAMLINE_VERSION
=
$BEAMLINE_VERSION
export
JUGGLER_BEAMLINE_PATH
=
$BEAMLINE_PATH
## Export beamline libraries
export
LD_LIBRARY_PATH
=
@CMAKE_INSTALL_PREFIX@/lib
${
LD_LIBRARY_PATH
:+:
$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