summaryrefslogtreecommitdiffstats
path: root/x11/kdelibs3/files/patch-kdeprint::imagetops
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdelibs3/files/patch-kdeprint::imagetops')
-rw-r--r--x11/kdelibs3/files/patch-kdeprint::imagetops25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/kdelibs3/files/patch-kdeprint::imagetops b/x11/kdelibs3/files/patch-kdeprint::imagetops
new file mode 100644
index 0000000..518e0b9
--- /dev/null
+++ b/x11/kdelibs3/files/patch-kdeprint::imagetops
@@ -0,0 +1,25 @@
+--- kdeprint/filters/imagetops.orig Wed Nov 28 12:25:21 2001
++++ kdeprint/filters/imagetops Wed Nov 28 12:29:50 2001
+@@ -27,11 +27,17 @@
+ # check the file mime type, and set the command correspondingly
+ cmd=
+ magic=`file -bi $FILE`
+-if [[ $magic != image/* ]] ; then
+- echo "Not an image"
+- exit 1;
+-fi
+-case ${magic/image\//} in
++
++case $magic in
++ image/*)
++ ;;
++ *)
++ echo "Not an image"
++ exit 1;
++ ;;
++esac
++
++case ${magic##image\/} in
+ jpeg)
+ cmd="djpeg -pnm"
+ ;;
OpenPOWER on IntegriCloud