blob: 4f16383477147a84fc4b547ba49fd62f22b7c7be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
#|
top="$(dirname $0)/../scheme"
exec racket -i -S "$top/racket" -l errortrace -cu "$0" ${1+"$@"}
|#
#lang racket/base
(require (lib "cmdline.rkt"))
(define port (make-parameter 1969))
(command-line
"run-racket.sh" (current-command-line-arguments)
(once-each
(("-p" "--port") p "Geiser server port" (port (string->number p)))))
(and ((dynamic-require 'geiser/server 'start-geiser) (port))
(printf "Geiser server running at port ~a~%" (port)))
|