title: How do I fix "sed: illegal option -- r" in macOS Sierra Android build?
body: <p>I am trying to build Android on my MacOS, but it gives me this error:</p>
  
  <blockquote>
    <p>"sed: illegal option -- r"</p>
  </blockquote>
  
  <p>I tried: </p>
  
  <pre><code>make bootimage
  make systemimage
  make recovery
  brunch
  mka bacon
  </code></pre>
  
  <p>All of them give me the same error.</p>