2002-09-20 15:25:20 -04:00
|
|
|
; reads package description in the right order
|
2002-09-26 08:13:01 -04:00
|
|
|
; in the end, the server can be started via (server)
|
|
|
|
|
2002-09-20 15:25:20 -04:00
|
|
|
(batch 'on)
|
2002-09-26 08:13:01 -04:00
|
|
|
(define *ASSUMED-SUNET-HOME*
|
|
|
|
(in 'scsh '(run (match:substring
|
|
|
|
(regexp-search (rx (submatch (* any) "sunet")) (cwd))
|
|
|
|
1))))
|
|
|
|
(define *SUNET-PACKAGE*
|
|
|
|
(in 'scsh `(run (string-append
|
|
|
|
(or (getenv "SUNETHOME")
|
|
|
|
,*ASSUMED-SUNET-HOME*)
|
|
|
|
"/packages.scm"))))
|
|
|
|
(define *SSAX-PACKAGE*
|
|
|
|
(in 'scsh `(run (string-append
|
|
|
|
(or (getenv "SSAXPATH")
|
|
|
|
(string-append ,*ASSUMED-SUNET-HOME* "/SSAX"))
|
|
|
|
"/lib/packages.scm"))))
|
2003-01-19 11:57:27 -05:00
|
|
|
(define *SURFLET-PACKAGE*
|
2002-09-26 08:13:01 -04:00
|
|
|
(in 'scsh `(run (string-append
|
|
|
|
(or (getenv "SUNETHOME")
|
|
|
|
,*ASSUMED-SUNET-HOME*)
|
|
|
|
"/httpd/servlets/packages.scm"))))
|
2003-01-19 11:57:27 -05:00
|
|
|
(define *SURFLET-SERVER*
|
2002-09-26 08:13:01 -04:00
|
|
|
(in 'scsh `(run (string-append
|
|
|
|
(or (getenv "SUNETHOME")
|
|
|
|
,*ASSUMED-SUNET-HOME*)
|
|
|
|
"/httpd/servlets/start-servlet-server"))))
|
|
|
|
(config `(load ,*SUNET-PACKAGE*))
|
|
|
|
(config `(load ,*SSAX-PACKAGE*))
|
2003-01-19 11:57:27 -05:00
|
|
|
(config `(load ,*SURFLET-PACKAGE*))
|
|
|
|
(config `(load ,*SURFLET-SERVER*))
|
2002-09-20 15:25:20 -04:00
|
|
|
(user)
|
2003-01-19 11:57:27 -05:00
|
|
|
(open 'surflet-server)
|
2002-09-26 08:13:01 -04:00
|
|
|
(batch 'off)
|
|
|
|
(in 'scsh '(run (display "type (server) to start the server\n")))
|
|
|
|
|