#!/bin/sh #---------------------------------------------------------------------------- # /var/spool/hylafax/mimeconverters/image/jpeg - jpeg2ps converter # # Creation: 2006-12-25 jed # Last Update: $Id$ # # Copyright (c) 2007-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # Mime type: image/jpeg or image/jpg # Comment: Converts JPEG attachments to PS # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #---------------------------------------------------------------------------- mime_path=/var/spool/hylafax/mimeconverters if [ ${#} -gt 0 ] then if [ -f /usr/bin/jpeg2ps ] then /usr/bin/jpeg2ps -q ${1} - else # error ${mime_path}/no-converter-mail "image/jpeg" "/usr/bin/jpeg2ps" fi else # show usage echo "Usage: ${0} filename" fi