ref: 18ae80eac7b678d71b13710b978a03863c7e3fd2
parent: 8a1e32e6a8c441f8358bd580c655d5ff48716fa0
author: Peter Mikkelsen <peter@pmikkelsen.com>
date: Sun Jul 18 09:08:03 EDT 2021
Install stdlib.pl and repl.pl into /sys/lib/prolog/
--- a/mkfile
+++ b/mkfile
@@ -21,5 +21,15 @@
BIN=/$objtype/bin
+PROLOGFILES=\
+ stdlib.pl\
+ repl.pl
+
+default:V: all
+
+install: $PROLOGFILES
+ mkdir -p /sys/lib/prolog
+ cp $PROLOGFILES /sys/lib/prolog
+
</sys/src/cmd/mkone
--- a/module.c
+++ b/module.c
@@ -8,9 +8,9 @@
void
initmodules(void)
{
- systemmodule = parsemodule("./stdlib.pl");
+ systemmodule = parsemodule("/sys/lib/prolog/stdlib.pl");
if(systemmodule == nil){
- print("Can't load ./stdlib.pl\n");
+ print("Can't load /sys/lib/prolog/stdlib.pl\n");
exits(nil);
}
@@ -21,7 +21,7 @@
}
usermodule = addemptymodule(L"user");
- parsemodule("./repl.pl");
+ parsemodule("/sys/lib/prolog/repl.pl");
}
Module *