scribble-enhanced/collects/help/help.ss
Robby Findler c784102b7b ..
original commit: 773d728d1113fa35022eb0b1ba5a73cfe853c95e
2003-12-05 23:15:31 +00:00

20 lines
945 B
Scheme

(module help mzscheme
(define cm-env-var "PLTHDCM")
(define install-cm? (getenv cm-env-var))
(define cm-trace? (and install-cm? (equal? (getenv cm-env-var) "trace")))
(when install-cm?
(printf "~a: installing compilation manager\n" cm-env-var)
(let-values ([(make-compilation-manager-load/use-compiled-handler
manager-trace-handller)
(parameterize ([current-namespace (make-namespace)])
(values
(dynamic-require '(lib "cm.ss") 'make-compilation-manager-load/use-compiled-handler)
(dynamic-require '(lib "cm.ss") 'manager-trace-handler)))])
(current-load/use-compiled (make-compilation-manager-load/use-compiled-handler))
(when cm-trace?
(manager-trace-handler
(lambda (x) (display x) (newline))))))
;; start help desk for real
(dynamic-require '(lib "help-app-main.ss" "help" "private") #f))