-
Notifications
You must be signed in to change notification settings - Fork 131
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
Modify usage of sed
to be compatible with macOS
#30
Conversation
Codecov Report
@@ Coverage Diff @@
## master #30 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 13 13
Lines 536 536
=====================================
Hits 536 536 Continue to review full report at Codecov.
|
6bf4812
to
69dd72f
Compare
Good find! But instead of using a modified command to make it work on a different OS, I think we should use those commands that work the same on multiple OSs. So I suggest you change the sed "/#include \"*\"/d" "$release_file" > "$release_file.tmp"
mv "$release_file.tmp" "$release_file" |
make release
on Mac OS Xsed
to be compatible with macOS
Also added lines to release shell
scripts/release.sh
Outdated
@@ -47,5 +47,5 @@ do | |||
printf "\n\n" >> "$release_file" | |||
done | |||
|
|||
# delete includes for non-standard header files from the release file |
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.
This comment is important 😬
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.
Sorry about that, adding it back now.
Thank you for contributing! 👍 |
Mac OS uses a different
sed
command from GNU. In order to use the-i
flag you must pass the extension along with it so I added the.hpp
extension if darwin is detected as the OS.