forked from fernandoacorreia/sbt-name-hashing-cases
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite sed commands to be less platform dependent.
MacOS doesn't ship with version of sed that includes (convenient) GNU extensions. We need to rewrite sed commands into a little bit more ugly form to make them less platform dependent.
- Loading branch information
1 parent
c240eeb
commit be6ddb3
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
be6ddb3
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.
Thank you for doing this. My knowledge of
sed
is rudimentary.I tested your changes on Linux Mint 16 (based on Ubuntu 13.10).
Running
tests/test-sbt-incremental-zentasks.sh
, while intest_change1
, this command:is aborting with this error:
be6ddb3
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.
Unfortunately, I'm not a sed expert either. The changes were driven by StackOverflow answers I found when I was running into these issues:
I'm guessing that the error you are getting is due to the fact that
-i
is treated differently on your system. MacOs man page says:be6ddb3
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 believe I fixed it.
Could you pull from my repository's master and test on OS X?
be6ddb3
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 just tested it on OS X and works like a charm! Thanks a lot!
I'll be looking into name hashing issues this week.
be6ddb3
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.
Great, thanks for testing it.
be6ddb3
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've updated my repository with these fixes.