-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean nocmodl_mod_to_cpp by doing sed in-place #3238
Conversation
Quality Gate passedIssues Measures |
${PROJECT_BINARY_DIR}/share/nrn/lib/nrnunits.lib | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/src/nrniv) | ||
"${source_dir}/${modfile_basename}.mod" ${NRN_NMODL_--neuron} -o "${target_dir}" | ||
COMMAND sed -i -e ${NOCMODL_SED_EXPR} "${target_dir}/${modfile_basename}.cpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vaguely remember macs having special demands about -i
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seem to be true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that it moves generated files into the build directory, we could bypass the issue by copying to $build_dir/$mod.cpp.tmp
and then use sed
to create $build_dir/$mod.cpp
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I did this patch the first time I vaguely remember that doing -i -e
was how I fixed it.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3238 +/- ##
=======================================
Coverage 67.07% 67.07%
=======================================
Files 569 569
Lines 111141 111141
=======================================
Hits 74549 74549
Misses 36592 36592 ☔ View full report in Codecov by Sentry. |
✔️ d6b84bf -> Azure artifacts URL |
No description provided.