Skip to content

Commit

Permalink
Read autoupdate relative URL from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaisorblade committed Sep 30, 2015
1 parent 658d75b commit be85fa3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions generate-handin-client/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@

; Enable auto-update? & Auto-update relative URL.
; Depends on web-address being defined.
;(define auto-update-address #f)
(define auto-update-address "handinplugin")
(define auto-update-relative-url
(get-conf 'auto-update-relative-url #f))

; Name of the course's homepage
(define web-menu-name
Expand Down Expand Up @@ -148,11 +148,11 @@
(print-info `(define web-menu-name ,web-menu-name))
(print-info `(define web-address ,web-address))

(when auto-update-address
(when auto-update-relative-url
;; Auto-updater section (see handin-server/doc.txt for details)
(print-info `(define enable-auto-update #t))
(print-info `(define version-filename ,(string-append auto-update-address "/" client-name ".version")))
(print-info `(define package-filename ,(string-append auto-update-address "/" client-name ".plt")))))
(print-info `(define version-filename ,(string-append auto-update-relative-url "/" client-name ".version")))
(print-info `(define package-filename ,(string-append auto-update-relative-url "/" client-name ".plt")))))

; dependencies
(print-info `(define requires '(("mred") ("openssl")))))))
Expand Down

0 comments on commit be85fa3

Please sign in to comment.