kde-improvements/servicemenus/scripts/jpegtran-rotate

glen cvs at pld-linux.org
Fri Jun 9 10:11:01 CEST 2006


Author: glen
Date: Fri Jun  9 10:10:56 2006
New Revision: 7471

Modified:
   kde-improvements/servicemenus/scripts/jpegtran-rotate
Log:
- fix indent

Modified: kde-improvements/servicemenus/scripts/jpegtran-rotate
==============================================================================
--- kde-improvements/servicemenus/scripts/jpegtran-rotate	(original)
+++ kde-improvements/servicemenus/scripts/jpegtran-rotate	Fri Jun  9 10:10:56 2006
@@ -1,24 +1,19 @@
 #!/bin/sh
-ROT=$1
+ROT="$1"
 shift
-while test -f "$1"
-do
-		if [ "$ROT" = "fliphor" ]
-		then
-			echo flipping hor
- 			`jpegtran -copy all -flip horizontal -outfile rotate "$1"`
-			`mv rotate "$1"`
-		else	
-			if [ "$ROT" = "flipver" ]
-			then
-				echo flipping ver
-				`jpegtran -copy all -flip vertical -outfile rotate "$1"`
-	                        `mv rotate "$1"`
-	               	else
-				echo "rotating2 $ROT"
-			        `jpegtran -copy all -rotate $ROT -outfile rotate "$1"`
-	        		`mv rotate "$1"`
-			fi
-		fi
+while test -f "$1"; do
+	if [ "$ROT" = "fliphor" ]; then
+		echo flipping hor
+		`jpegtran -copy all -flip horizontal -outfile rotate "$1"`
+		`mv rotate "$1"`
+	elif [ "$ROT" = "flipver" ]; then
+		echo flipping ver
+		`jpegtran -copy all -flip vertical -outfile rotate "$1"`
+		`mv rotate "$1"`
+	else
+		echo "rotating2 $ROT"
+		`jpegtran -copy all -rotate $ROT -outfile rotate "$1"`
+		`mv rotate "$1"`
+	fi
 	shift
 done


More information about the pld-cvs-commit mailing list