diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-09 21:52:56 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-09 21:52:56 +0100 |
commit | fb5f7a2a797183e5b2350ae76ea8ca09689f4a12 (patch) | |
tree | db177f6a69f8682141ddbb22aa6988f23bd66f8b /bin/geiser-racket.sh | |
parent | 70b6d7a95f3c4e706b72568e2a29de2391fe09e2 (diff) | |
parent | a7ad5704722b7fab966ac8fb4e6b62fe2e424756 (diff) | |
download | geiser-fb5f7a2a797183e5b2350ae76ea8ca09689f4a12.tar.gz geiser-fb5f7a2a797183e5b2350ae76ea8ca09689f4a12.tar.bz2 |
Merge branch 'master' into guile-meta
Conflicts:
elisp/geiser-guile.el
Diffstat (limited to 'bin/geiser-racket.sh')
-rwxr-xr-x | bin/geiser-racket.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/geiser-racket.sh b/bin/geiser-racket.sh new file mode 100755 index 0000000..4f16383 --- /dev/null +++ b/bin/geiser-racket.sh @@ -0,0 +1,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))) |