From: jiho-sf Date: Thu, 21 Jun 2007 08:32:27 +0000 (+0000) Subject: Committed patch 170667 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fa0e6de5f24a7c96c617eac3d85b0cf4e41f2c8;p=inkscape.git Committed patch 170667 "There is a small bashism in share/extenions/ps2pdf.sh. This will result in a problem when using "Save As..." with "PDF with Text and Images" selected on systems using /bin/dash as the default shell. Even if this kind of PDF output does not exist anymore... --- diff --git a/share/extensions/ps2pdf.sh b/share/extensions/ps2pdf.sh index 1b7c4cfa3..3e77ec30a 100755 --- a/share/extensions/ps2pdf.sh +++ b/share/extensions/ps2pdf.sh @@ -1,8 +1,8 @@ -#! /bin/sh +#!/bin/sh params=`grep "^%%DocumentMedia:" "$1" | head -n 1 | awk '{ if (NF==7) { if ($2!="plain") print "-sPAPERSIZE=" $2; else print "-dDEVICEWIDTHPOINTS=" $3 " -dDEVICEHEIGHTPOINTS=" $4; } }'` -if [ "x${params}x" == "xx" ] +if [ "x${params}x" = "xx" ] then params=`grep "^%%BoundingBox:" "$1" | head -n 1 | awk '{ print "-dDEVICEWIDTHPOINTS=" $4 " -dDEVICEHEIGHTPOINTS=" $5; }'` fi