This is an archive of the discontinued LLVM Phabricator instance.

Update framework-header-fix to force system sed
ClosedPublic

Authored by keith on Jul 24 2018, 10:53 PM.

Details

Summary

There are 2 changes here:

  1. Use system sed instead of the sed found in the user's path. This fixes this script in the case the user has gnu-sed in their $PATH before bsd sed since -i '' isn't compatible and you need -i instead.
  1. set -e in this script so it fails as soon as one of these commands fail instead of throwing errors for each file if they fail

Since this is only ran on macOS, and we're already using this
absolute path below, this seems like a safe addition

Diff Detail

Repository
rL LLVM

Event Timeline

keith created this revision.Jul 24 2018, 10:53 PM
keith added a subscriber: lldb-commits.
keith edited the summary of this revision. (Show Details)Jul 25 2018, 12:22 AM
keith edited the summary of this revision. (Show Details)
keith added a subscriber: lldb-commits.
This revision is now accepted and ready to land.Jul 26 2018, 7:24 AM
This revision was automatically updated to reflect the committed changes.
kastiglione added a comment.EditedNov 4 2018, 8:02 AM

@keith I screwed up and committed without amending the commit message to attribute you as the author :( – I'm sorry

No worries, thanks!

Keith Smiley