Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > ed0e8c28987dcb67322c00eae0a08756 > files > 1

fbida-2.06-2mdv2008.0.src.rpm

--- fbida-2.03/fbgs.resolution	2005-01-28 17:20:09.000000000 +0800
+++ fbida-2.03/fbgs	2005-01-30 17:53:56.001714536 +0800
@@ -21,6 +21,16 @@
 		-xxl)	gsopts="$gsopts -r150x150"
 			shift
 			;;
+		-r)	if [[ "$2" =~ "[0-9]+x[0-9]+" ]]; then
+				gsopts="$gsopts -r$2"
+			else
+				echo "The argument after -r, i.e. $2"
+				echo "is not a valid resolution. Please refer to manpage of"
+				echo "ghostscript, gs(1), for more info."
+				exit 1
+			fi
+			shift; shift
+			;;
 		-q | -a | --fitwidth)
 			fbiopts="$fbiopts $1"
 			shift