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 #4534 Map compilation with Makefile
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
    Scripts (.ufo)
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
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/407 Item 407] imported from sourceforge.net tracker on 2013-01-28 20:39:33

Makes ufo2map change to the directory where it is located, so that calls assuming "base" is where the maps are based on work correctly, even when called from other directories.

Also change Makefile.win to have it strip the leading directories so the ufo2map call has the proper structure.

With this patch the maps can be compiled again using "make -f Makefile.win all".
===== Comments Ported from Sourceforge =====

====== nobody (2009-03-09 20:36:30) ======

It does work now, for some mysterious reason. Very odd.
====== btaxis (2009-03-09 20:38:19) ======

Assigning this to mattn for approval to the ufo2map code change.
====== btaxis (2009-03-09 21:02:05) ======

The reason it doesn't work is because the substitution is case sensitive, combined with erratic Windows shell behavior.
====== nobody (2009-03-09 21:57:57) ======

we can't accept the ufo2map patch- it's windows only and argv[0] is not guaranteed to be the binary path (though it is on most implementations)
====== jgostling (2009-03-10 02:07:07) ======

File Added: U2M_WRAP.BAT
====== jgostling (2009-03-10 02:08:05) ======

File Added: Makefile.diff
====== jgostling (2009-03-10 02:11:32) ======

New fix for this issue: The patch to Makefile.win fixes the parameters, and calls the new U"M_WRAP.BAT script, which takes care of changing into the proper directory and calling ufo2map.exe with the rest of the parameters.
====== nobody (2009-03-10 08:32:13) ======

i've merged Makefile.win into maps.mk in build/ - please test it and report problems. you should now be able to run make maps from trunk/
====== () ======

Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif