On Sat, Jan 2, 2010 at 11:20 PM, Jason Dorje Short <jdo...@gmail.com> wrote:
> On Sat, Jan 2, 2010 at 8:49 AM, Daniel Markstedt <markst...@gmail.com> wrote:
>> Trying to run the convert_png script on this system for the first time
>> and am running into trouble.
>>
>> 95:flags daniel$ ./convert_png aragon.svg
>> sed: 1: "s/.svg$//i": bad flag in substitute command: 'i'
>
>  filebase=`echo $file0 | sed s/.svg$//i`
>
> The takes the flag name, like usa.svg, and drops the svg from the end.
>  It's a straightforward regular expression, the 'i' makes the search
> case-insensitive but not all versions of sed support this apparently.
> As long as all the svg file names end in .svg and not .SVG it should
> be fine to drop it.  Or you could try another way to drop the suffix,
> just by removing the last 4 characters or whatever.
>
> -jason
>

It seems you're right, Jason. The version of sed shipped with Mac OS
10.6.2 doesn't support this particular syntax.

Just grabbed ssed from macports instead and modified the script. :)

Thanks!

Daniel

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to