Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbScripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LHCb Core Software
LbScripts
Merge requests
!72
fixed issue with ganga-input-sandbox and non standard versions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fixed issue with ganga-input-sandbox and non standard versions
clemenci/LbScripts:master
into
master
Overview
1
Commits
2
Changes
1
Merged
Marco Clemencic
requested to merge
clemenci/LbScripts:master
into
master
8 years ago
Overview
1
Commits
2
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b56d6988
2 commits,
8 years ago
1 file
+
18
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
LbUtils/cmake/GangaTools.cmake
+
18
−
1
Options
@@ -16,9 +16,26 @@ mark_as_advanced(GANGA_BINARY_DIR GANGA_INPUT_SANDBOX_FILE)
function
(
ganga_create_job_runner
)
file
(
MAKE_DIRECTORY
${
GANGA_BINARY_DIR
}
)
# scan build.conf (if present) and prepare the corresponding options for lb-run
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/build.conf
)
file
(
STRINGS
${
CMAKE_SOURCE_DIR
}
/build.conf build_conf_lines
)
foreach
(
l
${
build_conf_lines
}
)
if
(
l MATCHES
"nightly_base=.+"
)
string
(
REPLACE
"nightly_base="
"--nightly-base "
nightly_base_opt
"
${
l
}
"
)
elseif
(
l MATCHES
"nightly_day=.+"
)
string
(
REPLACE
"nightly_day="
""
nightly_day
"
${
l
}
"
)
elseif
(
l MATCHES
"nightly_slot=.+"
)
string
(
REPLACE
"nightly_slot="
"--nightly "
nightly_slot_opt
"
${
l
}
"
)
endif
()
endforeach
()
if
(
nightly_slot_opt AND nightly_day
)
set
(
nightly_slot_opt
"
${
nightly_slot_opt
}
${
nightly_day
}
"
)
endif
()
endif
()
file
(
WRITE
${
GANGA_BINARY_DIR
}
/run
"#!/bin/sh
exec lb-run --user-area
\$
(cd
\$
(dirname
\$
0) && pwd)
${
CMAKE_PROJECT_NAME
}
${
CMAKE_PROJECT_VERSION
}
\"
$@
\"
exec lb-run
${
nightly_base_opt
}
${
nightly_slot_opt
}
--user-area
\$
(cd
\$
(dirname
\$
0) && pwd)
${
CMAKE_PROJECT_NAME
}
/
${
CMAKE_PROJECT_VERSION
}
\"
$@
\"
"
)
if
(
UNIX
)
execute_process
(
COMMAND chmod 755
${
GANGA_BINARY_DIR
}
/run
)
Loading