Skip to content

Instantly share code, notes, and snippets.

@sergejx
Created April 28, 2012 09:08
Show Gist options
  • Save sergejx/2517366 to your computer and use it in GitHub Desktop.
Save sergejx/2517366 to your computer and use it in GitHub Desktop.
SVG to PDF rule for Rubber
; Put these lines into /usr/share/rubber/rules.ini
; -- SVG to PDF conversion using Inkscape
[svgtopdf]
target = (.*)\.pdf
source = \1.{svg,svgz}
cost = 2
rule = shell
command = inkscape -D -z --file=$source --export-pdf=$target
message = converting $source into $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment