From 8fa0e6de5f24a7c96c617eac3d85b0cf4e41f2c8 Mon Sep 17 00:00:00 2001 From: jiho-sf Date: Thu, 21 Jun 2007 08:32:27 +0000 Subject: [PATCH] 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... --- share/extensions/ps2pdf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2