mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 15:25:00 +02:00
sch2fig/: rename Cairo PNG driver from "cairo" to "png"
This commit is contained in:
parent
d9eedec02a
commit
4ef07e5e29
@ -45,13 +45,13 @@ testref:
|
|||||||
./$(NAME) test.lib test.sch | fig2dev -L png -m 2 >ref.png
|
./$(NAME) test.lib test.sch | fig2dev -L png -m 2 >ref.png
|
||||||
|
|
||||||
png:
|
png:
|
||||||
./$(NAME) test.lib test.sch -- cairo -o _out.png -s 2
|
./$(NAME) test.lib test.sch -- png -o _out.png -s 2
|
||||||
[ ! -r pngref.png ] || \
|
[ ! -r pngref.png ] || \
|
||||||
compare -metric AE pngref.png _out.png _diff.png || \
|
compare -metric AE pngref.png _out.png _diff.png || \
|
||||||
qiv -t -R -D _diff.png pngref.png _out.png
|
qiv -t -R -D _diff.png pngref.png _out.png
|
||||||
|
|
||||||
pngref:
|
pngref:
|
||||||
./$(NAME) test.lib test.sch -- cairo -o pngref.png -s 2
|
./$(NAME) test.lib test.sch -- png -o pngref.png -s 2
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f out.fig _out.png _diff.png
|
rm -f out.fig _out.png _diff.png
|
||||||
|
@ -292,7 +292,7 @@ static void cr_end(void *ctx)
|
|||||||
|
|
||||||
|
|
||||||
const struct gfx_ops cairo_ops = {
|
const struct gfx_ops cairo_ops = {
|
||||||
.name = "cairo",
|
.name = "png",
|
||||||
// .line = cr_line, @@@ later
|
// .line = cr_line, @@@ later
|
||||||
.poly = layer_poly,
|
.poly = layer_poly,
|
||||||
.circ = layer_circ,
|
.circ = layer_circ,
|
||||||
|
@ -45,8 +45,8 @@ void usage(const char *name)
|
|||||||
"usage: %s [-r] [file.lib ...] file.sch -- driver_spec\n\n"
|
"usage: %s [-r] [file.lib ...] file.sch -- driver_spec\n\n"
|
||||||
" FIG driver spec:\n"
|
" FIG driver spec:\n"
|
||||||
" fig [-t template.fig] [var=value ...]\n"
|
" fig [-t template.fig] [var=value ...]\n"
|
||||||
" Cairo driver spec:\n"
|
" Cairo PNG driver spec:\n"
|
||||||
" cairo [-o output.png] [-s scale]\n"
|
" png [-o output.png] [-s scale]\n"
|
||||||
, name);
|
, name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user