[Freeciv-Dev] [bug #16556] Mac compatibility of the flag convert script
Update of bug #16556 (project freeciv): Status: Ready For Test = Fixed Assigned to:None = dmarks Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?16556 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16556] Mac compatibility of the flag convert script
URL: http://gna.org/bugs/?16556 Summary: Mac compatibility of the flag convert script Project: Freeciv Submitted by: dmarks Submitted on: Saturday 08/28/2010 at 15:23 Category: general Severity: 2 - Minor Priority: 3 - Low Status: Ready For Test Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: Mac OS Planned Release: ___ Details: The version of 'sed' included with Mac OS 10.6 does not support the case-insensitivity feature used in the convert_png script. What it does in the script is to make sure that the '.svg' file ending is stripped from the png file name regardless of case. Without it, '.SVG' for example isn't stripped. I think this is a minor drawback compared with the benefit of supporting Mac out of the box, however. Fix attached. ___ File Attachments: --- Date: Saturday 08/28/2010 at 15:23 Name: trunk-mac_compat_convert_png.diff Size: 441B By: dmarks http://gna.org/bugs/download.php?file_id=10039 ___ Reply to this item at: http://gna.org/bugs/?16556 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16556] Mac compatibility of the flag convert script
Follow-up Comment #1, bug #16556 (project freeciv): Looking at what i see when i unpack the 2.2.2 tarball, the data files and such are already in lower case anyway. I'm going to expose my ignorance here and ask if there is a case in which the untar process would change these to upper case? If not, then the 'i' flag seems pedantic. If it is needed for some systems, can we ifdef around this? ___ Reply to this item at: http://gna.org/bugs/?16556 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16556] Mac compatibility of the flag convert script
Follow-up Comment #2, bug #16556 (project freeciv): tar won't, but zip might. Another (portable) way to avoid the whole issue would be: sed 's/.[Ss][Vv][Gg]$//' ___ Reply to this item at: http://gna.org/bugs/?16556 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16556] Mac compatibility of the flag convert script
Follow-up Comment #4, bug #16556 (project freeciv): I run an old version of OpenBSD; I have the same problem with OpenBSD 'sed'. $ echo EXAMPLE.SVG | sed 's/.svg$//i' sed: 1: s/.svg$//i: bad flag in substitute command: 'i' $ echo EXAMPLE.SVG | sed 's/.[Ss][Vv][Gg]$//' EXAMPLE I never encountered this bug because I never use the convert_png script. ___ Reply to this item at: http://gna.org/bugs/?16556 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev