summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-08-17 07:58:01 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-08-17 07:58:01 +0000
commitf16c9f4043790acd006d9cc154af64158a39e97d (patch)
tree407c6f270fa412e02469b497419d052d4a98491f /bin
parentc73d669a4d5b8410232330edca53e5096ed94c3f (diff)
downloadfedora-doc-utils-f16c9f4043790acd006d9cc154af64158a39e97d.tar.gz
fedora-doc-utils-f16c9f4043790acd006d9cc154af64158a39e97d.tar.xz
fedora-doc-utils-f16c9f4043790acd006d9cc154af64158a39e97d.zip
A) Added man(1) page for tidy-bowl script
B) Synchronized docs-common/bin version with the modules/ version.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tidy-bowl10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/tidy-bowl b/bin/tidy-bowl
index aac11a2..87e08c7 100755
--- a/bin/tidy-bowl
+++ b/bin/tidy-bowl
@@ -27,13 +27,15 @@
ME=`/bin/basename $0`
PREFIX=`/usr/bin/dirname $0`
########################################################################
-USAGE="Usage: ${ME} [-T tool] [-t tool-args] file..."
+USAGE="Usage: ${ME} [-T tool] [-n] [-t tool-args] file..."
NORMTOOL=${PREFIX}/xmlformat
-NORMARGS="-i -v -f ${PREFIX}/xmlformat-fdp.conf"
-while getopts T:t: c
+NORMARGS="-v -f ${PREFIX}/xmlformat-fdp.conf"
+INPLACE='-i'
+while getopts T:nt: c
do
case "${c}" in
T) NORMTOOL="${OPTARG}";;
+ n) INPLACE="";;
t) NORMARGS="${OPTARG}";;
*) /bin/echo "${USAGE}" >&2; exit 1;;
esac
@@ -50,7 +52,7 @@ do
exit 1
fi
# Try to clean it up
- ${NORMTOOL} ${NORMARGS} "${fn}"
+ ${NORMTOOL} ${NORMARGS} ${INPLACE} "${fn}"
if [ $? -ne 0 ]; then
/bin/echo $0 "File '${fn}' unclean."
exit 1