summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-10-25 20:30:24 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-10-25 20:30:24 +0000
commitd9945f9e8dd88af8ffa7cb581339397961b8bb33 (patch)
tree3cf6209acf37337ea31c336514a4b9345e0924a7
parentcc093926f9975d7052d7026e986fde57f6416d2a (diff)
downloadfedora-doc-utils-d9945f9e8dd88af8ffa7cb581339397961b8bb33.tar.gz
fedora-doc-utils-d9945f9e8dd88af8ffa7cb581339397961b8bb33.tar.xz
fedora-doc-utils-d9945f9e8dd88af8ffa7cb581339397961b8bb33.zip
Avoid trying to pretty-print non-English XML files, for now at least.en-prettyprint-only
-rwxr-xr-xbin/tidy-bowl9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/tidy-bowl b/bin/tidy-bowl
index 87e08c7..22f3f68 100755
--- a/bin/tidy-bowl
+++ b/bin/tidy-bowl
@@ -45,8 +45,9 @@ shift `/usr/bin/expr "${OPTIND}" - 1`
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 @@ do
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