ALT Linux repos
Group :: Communications
RPM: mgetty
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: mgetty-1.1.31-no-acroread.patch
Download
Download
--- mgetty-1.1.31/fax/faxspool.in.no-acroread 2004-08-17 19:10:45.000000000 -0400
+++ mgetty-1.1.31/fax/faxspool.in 2004-08-20 14:20:18.703022000 -0400
@@ -370,10 +370,23 @@
{
driver="$GS_DRIVER_HI"
test X$3 = X-n && driver="$GS_DRIVER_LO"
-
- cat $1 |
- acroread -toPostScript |
- gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
+ r=0;
+ if /usr/bin/which acroread >/dev/null 2>&1; then
+ cat $1 |
+ acroread -toPostScript |
+ gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
+ r=$?;
+ if [ $r != 0 ]; then
+ cat $1 |
+ acroread -toPostScript -level1 |
+ gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
+ r=$?;
+ fi;
+ else
+ cat $1 | gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
+ r=$?;
+ fi;
+ return $r;
}