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.
This commit is contained in:
parent
3820e65992
commit
455f40c794
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@
|
|||
|
||||
(declare (uses paths
|
||||
common))
|
||||
#+chicken-script
|
||||
(begin
|
||||
(load "paths")
|
||||
(load "common"))
|
||||
|
||||
(require-extension sqlite3)
|
||||
(require-library srfi-4)
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
|
||||
(declare (uses paths
|
||||
common))
|
||||
#+chicken-script
|
||||
(begin
|
||||
(load "paths")
|
||||
(load "common"))
|
||||
|
||||
(require-extension sqlite3)
|
||||
(require-library posix srfi-4)
|
||||
|
|
Loading…
Reference in a new issue