aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-12-30 02:00:08 +0100
committerGravatar Tom Willemsen2012-12-30 02:00:08 +0100
commit455f40c794659248dc9cb94d0a4a2b3a873e4753 (patch)
treeb427eba0f81887c1ce03a6f6f9fa5e154aa865ae
parent3820e6599232f84aec978fa99cc814028e2df65e (diff)
downloadmarkam-455f40c794659248dc9cb94d0a4a2b3a873e4753.tar.gz
markam-455f40c794659248dc9cb94d0a4a2b3a873e4753.zip
Add possibility of running as scripts
By using the `#+' read syntax to determine if the file is being run as a script or (presumably) compiled, we can use it as either a binary or a script.
-rw-r--r--src/markam-convert.scm4
-rw-r--r--src/markam.scm4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/markam-convert.scm b/src/markam-convert.scm
index b1605c5..e6f0f48 100644
--- a/src/markam-convert.scm
+++ b/src/markam-convert.scm
@@ -24,6 +24,10 @@
(declare (uses paths
common))
+#+chicken-script
+(begin
+ (load "paths")
+ (load "common"))
(require-extension sqlite3)
(require-library srfi-4)
diff --git a/src/markam.scm b/src/markam.scm
index 38bfc42..028a364 100644
--- a/src/markam.scm
+++ b/src/markam.scm
@@ -23,6 +23,10 @@
(declare (uses paths
common))
+#+chicken-script
+(begin
+ (load "paths")
+ (load "common"))
(require-extension sqlite3)
(require-library posix srfi-4)