Hi Maciej,
This is good info, thanks for posting it. Can you also post it onto the Inkscape Wiki, where others will be able to find it? I think there's a page for Windows off of the CompilingInkscape page.
Bryce
On Mon, Mar 26, 2007 at 11:51:12AM -0400, Maciej Kalisiak wrote:
Now that I got everything sorted out (thanks to all who replied!), I figure I might as well post to the list how I automated Inkscape SVG exporting under Windows+cygwin, perhaps it will save someone else some time in the future. I use GNU "make" to build my documents, and here are the relevant bits of the Makefile:
INKSCAPE=d:/portable_apps/inkscape/inkscape.exe SRCDIR=$(shell cygpath -d -m `pwd`)
%.pdf: %.svg $(INKSCAPE) -f $(SRCDIR)/$< -A $(SRCDIR)/$@
# list of PDFs to build from SVGs: all: foo.pdf bar.pdf baz.pdf
The first stumbling block was that inkscape requires full paths to the original file and the destination file. The second stumbling block was how to translate them for inkscape, which does not like cygwin's /cygdrive/c/... notation.
The above is not optimal, so if anybody spots better ways to go about things, let me know. I just have to figure out how to avoid hardcoding the path to inkscape, which is in different directories on my various machines...
-- Maciej Kalisiak mac [at] dgp.toronto.edu http://www.dgp.toronto.edu/~mac