Re: [Freeciv-Dev] Trouble with convert_png script

2010-01-03 Thread Daniel Markstedt
On Sat, Jan 2, 2010 at 11:20 PM, Jason Dorje Short  wrote:
> On Sat, Jan 2, 2010 at 8:49 AM, Daniel Markstedt  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


[Freeciv-Dev] Trouble with convert_png script

2010-01-02 Thread Daniel Markstedt
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'
Converting aragon.svg to .png
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
   unlink file
Setting Language: ko_KR.UTF-8
Xlib:  extension "RANDR" missing on display "/tmp/launch-YS7ye8/:0".
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
   unlink file
Setting Language: ko_KR.UTF-8
Xlib:  extension "RANDR" missing on display "/tmp/launch-YS7ye8/:0".
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
   unlink file

The end result is all three of the shield stage images, as well as a
completed shield. No flag images are there.

Has someone with shell script skillz an idea of what's going wrong?

Daniel

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