From 10e4d901b94a029bd9a6f62c421ecdf0baafd139 Mon Sep 17 00:00:00 2001
From: dos-reis <gdr@axiomatics.org>
Date: Sun, 10 Feb 2008 20:47:41 +0000
Subject: 	* interp/sys-driver.boot (executeSpadScript): By default make 
 script execution quiet.  Support --verbose for verbose processing.

---
 configure                  | 18 +++++++++---------
 configure.ac               |  2 +-
 configure.ac.pamphlet      |  2 +-
 src/ChangeLog              |  5 +++++
 src/interp/sys-driver.boot | 14 ++++++++++----
 5 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/configure b/configure
index ff55faf6..bfc00935 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for OpenAxiom 1.2.0-2008-02-09.
+# Generated by GNU Autoconf 2.60 for OpenAxiom 1.2.0-2008-02-10.
 #
 # Report bugs to <open-axiom-bugs@lists.sf.net>.
 #
@@ -713,8 +713,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
 # Identity of this package.
 PACKAGE_NAME='OpenAxiom'
 PACKAGE_TARNAME='openaxiom'
-PACKAGE_VERSION='1.2.0-2008-02-09'
-PACKAGE_STRING='OpenAxiom 1.2.0-2008-02-09'
+PACKAGE_VERSION='1.2.0-2008-02-10'
+PACKAGE_STRING='OpenAxiom 1.2.0-2008-02-10'
 PACKAGE_BUGREPORT='open-axiom-bugs@lists.sf.net'
 
 ac_unique_file="src/Makefile.pamphlet"
@@ -1387,7 +1387,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures OpenAxiom 1.2.0-2008-02-09 to adapt to many kinds of systems.
+\`configure' configures OpenAxiom 1.2.0-2008-02-10 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1457,7 +1457,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of OpenAxiom 1.2.0-2008-02-09:";;
+     short | recursive ) echo "Configuration of OpenAxiom 1.2.0-2008-02-10:";;
    esac
   cat <<\_ACEOF
 
@@ -1561,7 +1561,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-OpenAxiom configure 1.2.0-2008-02-09
+OpenAxiom configure 1.2.0-2008-02-10
 generated by GNU Autoconf 2.60
 
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1575,7 +1575,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by OpenAxiom $as_me 1.2.0-2008-02-09, which was
+It was created by OpenAxiom $as_me 1.2.0-2008-02-10, which was
 generated by GNU Autoconf 2.60.  Invocation command line was
 
   $ $0 $@
@@ -25230,7 +25230,7 @@ exec 6>&1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by OpenAxiom $as_me 1.2.0-2008-02-09, which was
+This file was extended by OpenAxiom $as_me 1.2.0-2008-02-10, which was
 generated by GNU Autoconf 2.60.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -25279,7 +25279,7 @@ Report bugs to <bug-autoconf@gnu.org>."
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-OpenAxiom config.status 1.2.0-2008-02-09
+OpenAxiom config.status 1.2.0-2008-02-10
 configured by $0, generated by GNU Autoconf 2.60,
   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
diff --git a/configure.ac b/configure.ac
index 82fb2bee..09a24846 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 sinclude(config/open-axiom.m4)
 sinclude(config/aclocal.m4)
-AC_INIT([OpenAxiom], [1.2.0-2008-02-09], 
+AC_INIT([OpenAxiom], [1.2.0-2008-02-10], 
         [open-axiom-bugs@lists.sf.net])
 
 AC_CONFIG_AUX_DIR(config)
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet
index 11711408..f4f79946 100644
--- a/configure.ac.pamphlet
+++ b/configure.ac.pamphlet
@@ -1022,7 +1022,7 @@ information:
 <<Autoconf init>>=
 sinclude(config/open-axiom.m4)
 sinclude(config/aclocal.m4)
-AC_INIT([OpenAxiom], [1.2.0-2008-02-09], 
+AC_INIT([OpenAxiom], [1.2.0-2008-02-10], 
         [open-axiom-bugs@lists.sf.net])
 
 @
diff --git a/src/ChangeLog b/src/ChangeLog
index c718ec7e..6628929f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-10  Gabriel Dos Reis  <gdr@cs.tamu.edu>
+
+	* interp/sys-driver.boot (executeSpadScript): By default make
+	script execution quiet.  Support --verbose for verbose processing.
+
 2008-02-09  Gabriel Dos Reis  <gdr@cs.tamu.edu>
 
 	Add support for batch processing.
diff --git a/src/interp/sys-driver.boot b/src/interp/sys-driver.boot
index f2fe5d7f..e6faafe4 100644
--- a/src/interp/sys-driver.boot
+++ b/src/interp/sys-driver.boot
@@ -53,6 +53,8 @@ $verboseInterprerter := true
 
 $PrintCompilerMessageIfTrue := true
 
+++
+$options := []
 
 +++ Initialization routine run by the core system before handing off
 +++ to the interpreter or compiler.  
@@ -191,10 +193,14 @@ executeSpadScript(progname,options,file) ==
   $BOOT := NIL
   $NEWSPAD := true
   $SPAD := true
-  -- $EchoLines := false
-  -- ECHO_-META : fluid := false
-  -- $verboseInterprerter := false
-  -- $ProcessInteractiveValue := true
+  if getOption(Option '"verbose",%systemOptions()) then
+    $verboseInterprerter := true
+    $options := []
+    $ProcessInteractiveValue := false
+  else
+    $verboseInterprerter := false
+    $options := [["quiet"]]
+    $ProcessInteractiveValue := true
   CATCH($intCoerceFailure,
    CATCH($intSpadReader,read [file]))
   coreQuit (errorCount()> 0 => 1; 0)
-- 
cgit v1.2.3