diff options
author | Case Duckworth | 2024-06-05 09:21:25 -0500 |
---|---|---|
committer | Case Duckworth | 2024-06-05 09:21:25 -0500 |
commit | 423ac382f9e73bf1ca7fc6b400f98db087cd7d22 (patch) | |
tree | 1992e3dc7e71cd40eb7cdbc0b6d0c3cdf82c4332 /jimmy.egg | |
parent | Update README, add COPYING (diff) | |
download | jimmy-423ac382f9e73bf1ca7fc6b400f98db087cd7d22.tar.gz jimmy-423ac382f9e73bf1ca7fc6b400f98db087cd7d22.zip |
Write executable
This involved moving `src' to `lib' and making `bin'. `bin' holds the program, which only imports `jimmy.main' from lib.
Diffstat (limited to 'jimmy.egg')
-rw-r--r-- | jimmy.egg | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/jimmy.egg b/jimmy.egg index 84bf83c..be5b680 100644 --- a/jimmy.egg +++ b/jimmy.egg | |||
@@ -2,6 +2,7 @@ | |||
2 | (synopsis "The ssg king") | 2 | (synopsis "The ssg king") |
3 | (license "BSD-3-clause") | 3 | (license "BSD-3-clause") |
4 | (dependencies (chicken "5.3.0") | 4 | (dependencies (chicken "5.3.0") |
5 | args ; for (jimmy main) | ||
5 | module-declarations | 6 | module-declarations |
6 | utf8) | 7 | utf8) |
7 | (test-dependencies test) | 8 | (test-dependencies test) |
@@ -10,22 +11,34 @@ | |||
10 | (components | 11 | (components |
11 | ;; Utility library | 12 | ;; Utility library |
12 | (extension jimmy.util | 13 | (extension jimmy.util |
13 | (source src/util.scm)) | 14 | (source lib/util.scm)) |
14 | ;; Read gemini files into internal format | 15 | ;; Read gemini files into internal format |
15 | (extension jimmy.read | 16 | (extension jimmy.read |
16 | (source src/read.scm) | 17 | (source lib/read.scm) |
17 | (component-dependencies jimmy.util)) | 18 | (component-dependencies jimmy.util)) |
18 | ;; Emit the output format (includes gemini) | 19 | ;; Emit the output format (includes gemini) |
19 | (extension jimmy.emit | 20 | (extension jimmy.emit |
20 | (source src/emit.scm) | 21 | (source lib/emit.scm) |
21 | (component-dependencies jimmy.util)) | 22 | (component-dependencies jimmy.util)) |
22 | ;; Emit HTML -- import this *after* emit (is this the best way?) | 23 | ;; Emit HTML -- import this *after* emit (is this the best way?) |
23 | (extension jimmy.html | 24 | (extension jimmy.html |
24 | (source src/html.scm) | 25 | (source lib/html.scm) |
25 | (component-dependencies jimmy.util | 26 | (component-dependencies jimmy.util |
26 | jimmy.emit)) | 27 | jimmy.emit)) |
27 | ;; Wrap output in templates | 28 | ;; Wrap output in templates |
28 | (extension jimmy.wrap | 29 | (extension jimmy.wrap |
29 | (source src/wrap.scm) | 30 | (source lib/wrap.scm) |
30 | (component-dependencies jimmy.util | 31 | (component-dependencies jimmy.util |
31 | jimmy.emit)))) | 32 | jimmy.emit)) |
33 | ;; Main entry point (for command line) | ||
34 | (extension jimmy.main | ||
35 | (source lib/main.scm) | ||
36 | (component-dependencies jimmy.util | ||
37 | jimmy.emit | ||
38 | jimmy.read | ||
39 | jimmy.wrap)) | ||
40 | ;; Command-line program | ||
41 | (program jimmy | ||
42 | (csc-options -static) | ||
43 | (source bin/jimmy.scm) | ||
44 | (component-dependencies jimmy.main)))) | ||