aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-08-14 05:15:19 +0000
committerdos-reis <gdr@axiomatics.org>2008-08-14 05:15:19 +0000
commit737be2084042a41c9f818660b0eac0ba43254c9e (patch)
tree4b312e4ee989cba9e642f68251a15e490bdbb65c /src/interp
parent26c1f12d4d829f293ee9265690ddfb451119df1e (diff)
downloadopen-axiom-737be2084042a41c9f818660b0eac0ba43254c9e.tar.gz
* interp/sys-driver.boot (buildDatabasesHandler): New.
Install it as handler for --build-databases. * etc/Makefile.in ($(openaxiom_databases)): Adjust.
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/sys-driver.boot10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interp/sys-driver.boot b/src/interp/sys-driver.boot
index 4a97d76e..593244f3 100644
--- a/src/interp/sys-driver.boot
+++ b/src/interp/sys-driver.boot
@@ -175,7 +175,8 @@ restart() ==
RESTART0()
readSpadProfileIfThere()
spad()
-
+
+--%
initializeGlobalState() ==
REROOT()
@@ -224,3 +225,10 @@ compileSpadLibrary(progname,options,file) ==
associateRequestWithFileType(Option '"compile", '"spad",
function compileSpadLibrary)
+
+buildDatabasesHandler(prog,options,args) ==
+ initializeGlobalState()
+ MAKE_-DATABASES args
+ coreQuit(errorCount() > 0 => 1; 0)
+
+installDriver(Option '"build-databases",function buildDatabasesHandler)