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:
Tom Willemsen 2012-12-30 02:00:08 +01:00
parent 3820e65992
commit 455f40c794
2 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,10 @@
(declare (uses paths (declare (uses paths
common)) common))
#+chicken-script
(begin
(load "paths")
(load "common"))
(require-extension sqlite3) (require-extension sqlite3)
(require-library srfi-4) (require-library srfi-4)

View file

@ -23,6 +23,10 @@
(declare (uses paths (declare (uses paths
common)) common))
#+chicken-script
(begin
(load "paths")
(load "common"))
(require-extension sqlite3) (require-extension sqlite3)
(require-library posix srfi-4) (require-library posix srfi-4)