Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19997/bin
Modified Files:
tidy-bowl
Log Message:
A) Added man(1) page for tidy-bowl script
B) Synchronized docs-common/bin version with the modules/ version.
Index: tidy-bowl
===================================================================
RCS file: /cvs/docs/docs-common/bin/tidy-bowl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tidy-bowl 27 Jun 2005 19:49:21 -0000 1.1
+++ tidy-bowl 17 Aug 2005 07:58:01 -0000 1.2
@@ -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 @@
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
Show replies by date