-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-exe.lsh
More file actions
executable file
·31 lines (23 loc) · 845 Bytes
/
build-exe.lsh
File metadata and controls
executable file
·31 lines (23 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/sbcl --script
(load "~/quicklisp/setup.lisp")
(ql:setup)
(ql:update-all-dists :prompt nil)
(ql:quickload 'clim-gopher)
(ql:quickload 'net.didierverna.clon)
(net.didierverna.clon:nickname-package)
(net.didierverna.clon:defsynopsis (:POSTFIX "URL")
(text :contents "A small graphical Gopher browser to surf gopherspace")
(group (:header "Options:")
(flag :short-name "h" :long-name "help"
:description "Print this help and exit.")))
(defun main ()
(clon:make-context)
(when (clon:getopt :short-name "h")
(clon:help)
(clon:exit))
(let ((start-url (car (net.didierverna.clon:remainder))))
(if start-url
(clim-gopher:browser :url start-url)
(clim-gopher:browser))))
(save-lisp-and-die "gopher" :toplevel #'main :executable t :purify t
:save-runtime-options t)