summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-11 15:41:21 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-11 15:41:21 (GMT)
commit664b36ff59587f010e04ee4508824f519cd0ce5e (patch)
tree264019de4808557f285da9fdae4ed284485d34e3
parentdbc879e9495bf9394a3ea1c081f507acf1f23273 (diff)
downloadcpython-664b36ff59587f010e04ee4508824f519cd0ce5e.zip
cpython-664b36ff59587f010e04ee4508824f519cd0ce5e.tar.gz
cpython-664b36ff59587f010e04ee4508824f519cd0ce5e.tar.bz2
*Sigh*
Add a -q option for "quiet" operation. Nothing gets out (not even stderr, since that's tossed to stdout for capture in the .how file). It's a good idea to use -l to get the log in case there are problems. Maybe this should be the default and add a --verbose option to get the stdout? There's way too much junk output.
-rwxr-xr-xDoc/tools/mkhowto.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh
index 6d8da8f..0541c85 100755
--- a/Doc/tools/mkhowto.sh
+++ b/Doc/tools/mkhowto.sh
@@ -99,6 +99,10 @@ while [ "$1" ] ; do
DISCARD_TEMPS=''
shift 1
;;
+ -q|--quiet|__quie|--qui|--qu|--q)
+ QUIET=true
+ shift 1
+ ;;
-*)
usage
;;
@@ -119,6 +123,10 @@ if [ "$DEBUGGING" ] ; then
set -x
fi
+if [ "$QUIET" ] ; then
+ exec >/dev/null
+fi
+
for FILE in $@ ; do
FILE=${FILE%.tex}
if [ "$BUILD_DVI" -o "$BUILD_PS" ] ; then