docs-common/bin tidy-bowl,1.2,1.3

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Tue Oct 25 20:30:26 UTC 2005


Author: jtr

Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11728/docs-common/bin

Modified Files:
	tidy-bowl 
Log Message:
Avoid trying to pretty-print non-English XML files, for now at least.



Index: tidy-bowl
===================================================================
RCS file: /cvs/docs/docs-common/bin/tidy-bowl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tidy-bowl	17 Aug 2005 07:58:01 -0000	1.2
+++ tidy-bowl	25 Oct 2005 20:30:24 -0000	1.3
@@ -45,8 +45,9 @@
 for fn in $@
 do
 	case "${fn}" in
-	*.[Xx][Mm][Ll] )
+	*-[Ee][Nn].[Xx][Mm][Ll] )
 		# Make sure we can find the input file
+		# /bin/echo "$0: English XML file ${fn} prettyprinted."
 		if [ ! -f "${fn}" ]; then
 			/bin/echo $0 "Cannot find '${fn}'"
 			exit 1
@@ -58,7 +59,13 @@
 			exit 1
 		fi
 		;;
+	*.[Xx][Mm][Ll] )
+		# A non-English XML file.  What to do, what to do?
+		# /bin/echo "$0: Non-English XML file ${fn} left unchanged."
+		;;
 	* )
+		# Some other kind of file.  DO NOTHING!!!
+		# /bin/echo "$0: file ${fn} left unchanged."
 		;;
 	esac
 done




More information about the Fedora-docs-commits mailing list