640f8af
--- ImageMagick-6.2.0/config/delegates.xml.in.hp2xx	2005-03-16 09:31:42.843768000 -0500
640f8af
+++ ImageMagick-6.2.0/config/delegates.xml.in	2005-03-16 09:33:16.544971000 -0500
640f8af
@@ -70,8 +70,16 @@
640f8af
   <delegate decode="gs-mono" stealth="True" command='"@PSDelegate@" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=@GSMonoDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
640f8af
   
640f8af
     mv -f `basename "%o"` "%o"' />
640f8af
-  
640f8af
-    mv -f `basename "%o"` "%o"' />
640f8af
+  
640f8af
+    @HPGLDecodeDelegate@ -q -m eps -f `basename "%o"` "%i"
640f8af
+    mv -f `basename "%o"` "%o
640f8af
+  else
640f8af
+    echo "You need to install hp2xx (which is not part of Red Hat Linux) to use"
640f8af
+    echo "HPGL files with ImageMagick."
640f8af
+    echo "Current hp2xx RPM packages for Red Hat Linux can be found at"
640f8af
+    echo "http://rhcontrib.bero.org/search.php in the Applications/Multimedia section."
640f8af
+    exit 1
640f8af
+  fi' />
640f8af
   <delegate decode="htm" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' />
640f8af
   <delegate decode="html" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' />
640f8af
   <delegate decode="https" command='"@WWWDecodeDelegateDefault@" -q -O "%o" "https:%i"' />