summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-03 17:48:55 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-03 17:48:55 +0000
commitc571e36c3382921a15aee9f79da3019534ab7ce4 (patch)
treeb651ab65064235d79e1e543274abcb7d32dd382d
parentff480e0d573422fa2d0a7d3ffc59f3c6b5b79852 (diff)
downloadfedora-doc-utils-c571e36c3382921a15aee9f79da3019534ab7ce4.tar.gz
fedora-doc-utils-c571e36c3382921a15aee9f79da3019534ab7ce4.tar.xz
fedora-doc-utils-c571e36c3382921a15aee9f79da3019534ab7ce4.zip
Don't prettyprint deleted files.
-rwxr-xr-xbin/tidy-bowl8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/tidy-bowl b/bin/tidy-bowl
index 767f0a7..95527da 100755
--- a/bin/tidy-bowl
+++ b/bin/tidy-bowl
@@ -45,12 +45,14 @@ shift `/usr/bin/expr "${OPTIND}" - 1`
for fn in $@
do
case "${fn}" in
- *-de.xml | *-en.xml | *-fr-xml | *-it.xml | *-es.xml | *-ru.xml )
+ *-de.xml | *-en.xml | *-fr-xml | *-it.xml )
# Make sure we can find the input file
# /bin/echo "$0: XML file ${fn} prettyprinted."
if [ ! -f "${fn}" ]; then
- /bin/echo $0 "Cannot find '${fn}'"
- exit 1
+ # A non-readable file may be removed. Ever
+ # think of that?
+ # /bin/echo $0 "Cannot find '${fn}'"
+ exit 0
fi
# Try to clean it up
${NORMTOOL} ${NORMARGS} ${INPLACE} "${fn}"