UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4720 sed using GNU-only extension
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    5. Important
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/593 Item 593] imported from sourceforge.net tracker on 2013-01-28 20:43:43

When using a non-GNU make (like on OSX or BSD which do no know the -r option), make has a definition in build/maps.mk which fails upon every call:
~/ufo/trunk> make
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

The attached patch fixes this by using awk instead
===== Comments Ported from Sourceforge =====

====== planetmaker (2011-01-22 18:53:48) ======


====== planetmaker (2011-01-22 23:11:49) ======

improved
====== planetmaker (2011-01-22 23:13:05) ======

Attached an improved diff. Awk sometimes has issues with the field separator and behaves differently under make than under bash itself. tr can do the trick, though.
====== tlh2000 (2011-01-24 07:26:55) ======

Applied to master - thanks
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif