$NetBSD: patch-ag,v 1.2 2007/02/05 20:20:03 adam Exp $

--- share/extensions/ps2pdf.sh.orig	2007-01-16 03:06:10.000000000 +0100
+++ share/extensions/ps2pdf.sh
@@ -2,7 +2,7 @@
 
 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
