Using gracket
This commit is contained in:
parent
765d30f121
commit
78ccf5393c
|
@ -19,7 +19,7 @@ kill_all() {
|
||||||
run_loop () { # <basename> <kill?>
|
run_loop () { # <basename> <kill?>
|
||||||
while true; do
|
while true; do
|
||||||
echo "$1: compiling"
|
echo "$1: compiling"
|
||||||
"$PLTROOT/bin/raco" make -k "$1.rkt"
|
"$PLTROOT/bin/raco" make "$1.rkt"
|
||||||
echo "$1: running"
|
echo "$1: running"
|
||||||
"$MZ" -t "$1.rkt" 2>&1 >> "$LOGS/$1.log" &
|
"$MZ" -t "$1.rkt" 2>&1 >> "$LOGS/$1.log" &
|
||||||
echo "$!" > "$LOGS/$1.pid"
|
echo "$!" > "$LOGS/$1.pid"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
(path-timing-png-prefix filename))
|
(path-timing-png-prefix filename))
|
||||||
(system*/exit-code
|
(system*/exit-code
|
||||||
(path->string
|
(path->string
|
||||||
(build-path (plt-directory) "plt" "bin" "mred-text"))
|
(build-path (plt-directory) "plt" "bin" "gracket-text"))
|
||||||
"-t"
|
"-t"
|
||||||
(path->string (build-path (drdr-directory) "graphs" "build-graph.rkt"))
|
(path->string (build-path (drdr-directory) "graphs" "build-graph.rkt"))
|
||||||
"--"
|
"--"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
- build the global .png files with a recent svn build:
|
- build the global .png files with a recent svn build:
|
||||||
|
|
||||||
mred-text mk-img.rkt
|
gracket-text mk-img.rkt
|
||||||
|
|
||||||
This will dump some png files in the current directory. Put them in
|
This will dump some png files in the current directory. Put them in
|
||||||
some global place on the server
|
some global place on the server
|
||||||
|
|
||||||
- to build a script for a particular page, do this:
|
- to build a script for a particular page, do this:
|
||||||
|
|
||||||
mred-text build-graph.rkt -l http://drdr.racket-lang.org/~a/collects/path/to/file.scm \
|
gracket-text build-graph.rkt -l http://drdr.racket-lang.org/~a/collects/path/to/file.scm \
|
||||||
--image-loc /static/data/graph-images/ \
|
--image-loc /static/data/graph-images/ \
|
||||||
file_scm.timing \
|
file_scm.timing \
|
||||||
file_scm_png_file_prefix \
|
file_scm_png_file_prefix \
|
||||||
|
|
|
@ -152,6 +152,9 @@
|
||||||
(path->string (build-path trunk-dir "bin" "racket")))
|
(path->string (build-path trunk-dir "bin" "racket")))
|
||||||
(define raco-path
|
(define raco-path
|
||||||
(path->string (build-path trunk-dir "bin" "raco")))
|
(path->string (build-path trunk-dir "bin" "raco")))
|
||||||
|
; XXX Remove
|
||||||
|
(define mzc-path
|
||||||
|
(path->string (build-path trunk-dir "bin" "mzc")))
|
||||||
(define gracket-text-path
|
(define gracket-text-path
|
||||||
(path->string (build-path trunk-dir "bin" "gracket-text")))
|
(path->string (build-path trunk-dir "bin" "gracket-text")))
|
||||||
(define gracket-path
|
(define gracket-path
|
||||||
|
@ -188,7 +191,9 @@
|
||||||
[(list-rest (or 'mzscheme 'racket) rst)
|
[(list-rest (or 'mzscheme 'racket) rst)
|
||||||
(lambda () (list* racket-path rst))]
|
(lambda () (list* racket-path rst))]
|
||||||
[(list-rest 'mzc rst)
|
[(list-rest 'mzc rst)
|
||||||
(lambda () (list* raco-path "make" rst))]
|
(lambda () (list* mzc-path rst))]
|
||||||
|
[(list-rest 'raco rst)
|
||||||
|
(lambda () (list* raco-path rst))]
|
||||||
[(list-rest (or 'mred 'mred-text
|
[(list-rest (or 'mred 'mred-text
|
||||||
'gracket 'gracket-text)
|
'gracket 'gracket-text)
|
||||||
rst)
|
rst)
|
||||||
|
|
|
@ -30,10 +30,11 @@
|
||||||
(list* command args))
|
(list* command args))
|
||||||
(define-values
|
(define-values
|
||||||
(the-process stdout stdin stderr)
|
(the-process stdout stdin stderr)
|
||||||
(apply subprocess
|
(parameterize ([subprocess-group-enabled #t])
|
||||||
#f #f #f
|
(apply subprocess
|
||||||
new-command
|
#f #f #f
|
||||||
new-args))
|
new-command
|
||||||
|
new-args)))
|
||||||
|
|
||||||
(notify! "Running: ~a ~S" command args)
|
(notify! "Running: ~a ~S" command args)
|
||||||
|
|
||||||
|
@ -76,6 +77,8 @@
|
||||||
(λ (_)
|
(λ (_)
|
||||||
(define end-time
|
(define end-time
|
||||||
(current-inexact-milliseconds))
|
(current-inexact-milliseconds))
|
||||||
|
(subprocess-kill the-process #f)
|
||||||
|
(sleep)
|
||||||
(subprocess-kill the-process #t)
|
(subprocess-kill the-process #t)
|
||||||
(loop open-ports end-time status log)))
|
(loop open-ports end-time status log)))
|
||||||
(handle-evt the-process
|
(handle-evt the-process
|
||||||
|
|
Loading…
Reference in New Issue
Block a user