nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/doc: introduce option --no-render in HTML phase.
[nit.git]
/
contrib
/
inkscape_tools
/
src
/
svg_to_icons.nit
diff --git
a/contrib/inkscape_tools/src/svg_to_icons.nit
b/contrib/inkscape_tools/src/svg_to_icons.nit
index
0f8cf98
..
301772b
100644
(file)
--- a/
contrib/inkscape_tools/src/svg_to_icons.nit
+++ b/
contrib/inkscape_tools/src/svg_to_icons.nit
@@
-56,6
+56,11
@@
if not errors.is_empty or opt_help.value then
exit 1
end
exit 1
end
+if not "inkscape".program_is_in_path then
+ print "This tool needs the external program `inkscape`, make sure it is installed and in your PATH."
+ exit 1
+end
+
var drawing = rest.first
if not drawing.file_exists then
stderr.write "Source drawing file '{drawing}' does not exist."
var drawing = rest.first
if not drawing.file_exists then
stderr.write "Source drawing file '{drawing}' does not exist."