From 455f40c794659248dc9cb94d0a4a2b3a873e4753 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 30 Dec 2012 02:00:08 +0100 Subject: [PATCH] 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. --- src/markam-convert.scm | 4 ++++ src/markam.scm | 4 ++++ 2 files changed, 8 insertions(+) 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)