fix cross-build for Windows to use setup/winvers-change
Merge to v6.3
This commit is contained in:
parent
836316f5ed
commit
079183eb6a
1
Makefile
1
Makefile
|
@ -492,6 +492,7 @@ bundle-from-server:
|
|||
$(BUNDLE_RACO) pkg install $(REMOTE_INST_AUTO) $(PKG_SOURCE_MODE) $(REQUIRED_PKGS)
|
||||
$(BUNDLE_RACO) pkg install $(REMOTE_INST_AUTO) $(PKG_SOURCE_MODE) $(PKGS)
|
||||
$(RACKET) -l setup/unixstyle-install post-adjust "$(SOURCE_MODE)" "$(PKG_SOURCE_MODE)" racket bundle/racket
|
||||
$(RACKET) -l setup/winvers-change bundle/racket
|
||||
|
||||
UPLOAD_q = --readme "$(README)" --upload "$(UPLOAD)" --desc "$(DIST_DESC)"
|
||||
DIST_ARGS_q = $(UPLOAD_q) $(RELEASE_MODE) $(SOURCE_MODE) $(VERSIONLESS_MODE) $(MAC_PKG_MODE) \
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
;; of the binary and restarting that copy for the actual change.
|
||||
|
||||
#lang racket/base
|
||||
(require setup/cross-system)
|
||||
|
||||
(define verbose? #t)
|
||||
(define binary-extensions '("exe" "dll" "lib" "so" "def" "exp" #|"obj" "o"|#))
|
||||
|
@ -69,12 +70,13 @@
|
|||
(close-input-port i)
|
||||
(close-output-port o)))
|
||||
|
||||
(let loop ([paths (if (zero? (vector-length (current-command-line-arguments)))
|
||||
'(".")
|
||||
(vector->list (current-command-line-arguments)))])
|
||||
(for ([path (in-list paths)])
|
||||
(cond [(file-exists? path)
|
||||
(when (binary-file? path) (do-file path))]
|
||||
[(directory-exists? path)
|
||||
(parameterize ([current-directory path])
|
||||
(loop (map path->string (directory-list))))])))
|
||||
(when (eq? 'windows (cross-system-type))
|
||||
(let loop ([paths (if (zero? (vector-length (current-command-line-arguments)))
|
||||
'(".")
|
||||
(vector->list (current-command-line-arguments)))])
|
||||
(for ([path (in-list paths)])
|
||||
(cond [(file-exists? path)
|
||||
(when (binary-file? path) (do-file path))]
|
||||
[(directory-exists? path)
|
||||
(parameterize ([current-directory path])
|
||||
(loop (map path->string (directory-list))))]))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user