[Freeciv-Dev] Re: Problems using the convert_png script
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On 2005-10-17, at 22.02, Jason Dorje Short wrote:
Daniel Markstedt wrote:
I'm trying to generate png flags, but running the convert_png script
produce the error:
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
Tried on OSX 10.3.9
How are you running it? Maybe it should use /bin/bash instead of
/bin/sh (see line 0 of the script).
Flag file names shouldn't have spaces or begin with a dash or it will
break the script (the former is fixable, the latter...not easily).
Run the program as
./convert_png wales.svg
./convert_png *.svg
-jason
It didn't matter whether I used sh or bash and I'm running it as you
said.
However, I didn't provide the full message:
Daniel
sed: 1: "s/.svg$//i": bad flag in substitute command: 'i'
Converting zulu.svg to .png
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
** (process:23566): WARNING **: Could not open units file
'Inkscape.app/Contents/Resources/ui/units.txt': No such file or
directory
** (process:23566): WARNING **: * INKSCAPE_DATADIR is:
'/Users/mjwybrow/builds/inkinstall/share'
** (process:23566): WARNING **: * INKSCAPE_UIDIR is:
'Inkscape.app/Contents/Resources/ui'
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
** (process:23599): WARNING **: Could not open units file
'Inkscape.app/Contents/Resources/ui/units.txt': No such file or
directory
** (process:23599): WARNING **: * INKSCAPE_DATADIR is:
'/Users/mjwybrow/builds/inkinstall/share'
** (process:23599): WARNING **: * INKSCAPE_UIDIR is:
'Inkscape.app/Contents/Resources/ui'
rm: illegal option -- 1
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
|
|