adjust some collection-file-path calls to work with binary packages

In a few cases, sources should be preserved in binary mode.
This commit is contained in:
Matthew Flatt 2014-06-02 20:05:23 +01:00
parent fc74fa36ef
commit f02d9268ec
5 changed files with 11 additions and 4 deletions

View File

@ -13,6 +13,9 @@
(define copy-man-pages '("drracket.1"))
(define binary-keep-files '("private/launcher-mred-bootstrap.rkt"
"private/launcher-mz-bootstrap.rkt"))
;; color-blind friendly palette from Paul Tol:
;; http://www.sron.nl/~pault/
;; using his Scheme for Marking Text colors

View File

@ -4,3 +4,7 @@
(define mred-launcher-names (list "Slideshow"))
(define compile-omit-paths '("initial-ones.rkt" "examples"))
(define test-omit-paths '("tutorial-show.rkt"))
(define binary-keep-files '("tutorial-show.rkt"
"initial-ones.rkt"
"examples"))

View File

@ -1282,9 +1282,7 @@
(define inp
(case (object-name (current-input-port))
[(readline-input)
(parameterize ([(dynamic-require
(collection-file-path "pread.rkt" "readline")
'readline-prompt)
(parameterize ([(dynamic-require 'readline/pread 'readline-prompt)
qtext])
(read-line))]
[else (write-bytes qtext) (flush-output) (read-line)]))

View File

@ -1180,7 +1180,8 @@
file
(if (null? (cddr p))
(list "mzlib")
(cddr p))))))]
(cddr p))
#:check-compiled? #f))))]
[(and (list? p)
(eq? 'module (car p)))
sym]

View File

@ -157,6 +157,7 @@
(not (file-exists? p)))
;; Try ".ss":
(define p2 (apply collection-file-path
#:check-compiled? #f
(path-replace-suffix file #".ss")
coll))
(if (file-exists? p2)