From cf9b2c224f6b3c554e65e587d3b80f30474ac724 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 16 Nov 2013 12:41:21 -0500 Subject: [PATCH] ensure pdf path is there --- bin/svggvs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/svggvs b/bin/svggvs index 3179f5f..47ec84a 100755 --- a/bin/svggvs +++ b/bin/svggvs @@ -78,6 +78,8 @@ module SVGGVS end end + Pathname(context.session.pdf_target).parent.mkpath + system "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=#{context.session.pdf_target} -dBATCH #{pages.join(" ")}" end