From b7610c405d58c89f0bfee7b81e4caf56b616f773 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 13 Jun 2014 07:57:01 +0100 Subject: [PATCH] distro-build: move a file out that is accessed directly The "pack-all.rkt" file is needed before (and only before) the distro-build package itself is ready, so move it to the "racket/src" directory. --- Makefile | 8 ++------ .../distro-build-client/doc.txt | 18 ++++++++++-------- racket/src/link-all.rkt | 8 ++++++++ .../src/pack-all.rkt | 5 ++++- 4 files changed, 24 insertions(+), 15 deletions(-) rename pkgs/distro-build-pkgs/distro-build-server/pack-and-catalog.rkt => racket/src/pack-all.rkt (97%) diff --git a/Makefile b/Makefile index 77bd1921b4..45590d3f68 100644 --- a/Makefile +++ b/Makefile @@ -261,10 +261,6 @@ REQUIRED_PKGS = racket-lib # Packages needed for building distribution: DISTRO_BUILD_PKGS = distro-build-lib -# To bootstrap, we use some "distro-build" libraries directly, -# instead of from an installed package: -DISTBLD = pkgs/distro-build-pkgs/distro-build-server - SVR_PRT = $(SERVER):$(SERVER_PORT) SVR_CAT = http://$(SVR_PRT)/$(SERVER_CATALOG_PATH) @@ -367,11 +363,11 @@ PACK_NATIVE = --native --pack build/native/pkgs \ ++catalog build/native/catalog \ ++catalog build/local/catalog native-catalog: - $(RACKET) $(DISTBLD)/pack-and-catalog.rkt $(PACK_NATIVE) native-pkgs + $(RACKET) racket/src/pack-all.rkt $(PACK_NATIVE) native-pkgs # Create a catalog for all packages in this directory: local-source-catalog: - $(RACKET) $(DISTBLD)/pack-and-catalog.rkt ++catalog build/local/catalog pkgs + $(RACKET) racket/src/pack-all.rkt ++catalog build/local/catalog pkgs # Clear out a package build in "build/user", and then install # packages: diff --git a/pkgs/distro-build-pkgs/distro-build-client/doc.txt b/pkgs/distro-build-pkgs/distro-build-client/doc.txt index 8d9d1b7042..455163a333 100644 --- a/pkgs/distro-build-pkgs/distro-build-client/doc.txt +++ b/pkgs/distro-build-pkgs/distro-build-client/doc.txt @@ -92,14 +92,16 @@ Each Windows client needs the following: Windows command line (like freeSSHd) or bash with access to cmd.exe (like Cygwin's opensshd) * git (unless the working directory is ready) - * Microsoft Visual Studio 9.0 (2008), installed in the - default folder: - C:\Program Files\Microsoft Visual Studio 9.0 (32-bit host) - C:\Program Files (x86)\Microsoft Visual Studio 9.0 (64-bit host) + * Microsoft Visual Studio (version >= 9.0, <= 12.0), installed + in the default folder: + C:\Program Files\Microsoft Visual Studio + or + C:\Program Files (x86)\Microsoft Visual Studio * Nullsoft Scriptable Install System (NSIS) verstion 2.x, installed in the default folder: C:\Program Files\NSIS\makensis.exe - or C:\Program Files (x86)\NSIS\makensis.exe + or + C:\Program Files (x86)\NSIS\makensis.exe or installed so that `makensis' in your PATH. Site Configuration @@ -211,10 +213,10 @@ Site-configuration keywords (where means no spaces, etc.): #:configure '( ...) --- arguments to `configure' - #:bits --- 32 or 64, affects Visual Studio path + #:bits --- 32 or 64, affects Visual Studio mode - #:vc --- "x86" or "x64" to select the Visual C build mode; - default depends on `#:bits' + #:vc --- "x86" or "x64" to select the Visual Studio build + mode; default depends on `#:bits' #:sign-identity --- provides an identity to be passed to `codesign` for code signing on Mac OS X (for all executables in a diff --git a/racket/src/link-all.rkt b/racket/src/link-all.rkt index 096fec4a63..7dc8165379 100644 --- a/racket/src/link-all.rkt +++ b/racket/src/link-all.rkt @@ -10,6 +10,14 @@ pkg/lib pkg/path) +;; Find packages in a directory tree ("info.rkt" indicates a package) +;; and link the packages into an installation. The packages are linked +;; in a "devel-pkgs" scope to isolate them from packages at +;; "installation" scope, so that the set of linked packages can be +;; updated when the directory content changes. + +;; Used by the top-level Makefile in the main Racket repository. + (define config-dir-path (build-path "racket" "etc")) (define config-file-path (build-path config-dir-path "config.rktd")) (define devel-pkgs-rel-dir (build-path "devel-pkgs")) diff --git a/pkgs/distro-build-pkgs/distro-build-server/pack-and-catalog.rkt b/racket/src/pack-all.rkt similarity index 97% rename from pkgs/distro-build-pkgs/distro-build-server/pack-and-catalog.rkt rename to racket/src/pack-all.rkt index 87a15feee0..4dbf863f74 100644 --- a/pkgs/distro-build-pkgs/distro-build-server/pack-and-catalog.rkt +++ b/racket/src/pack-all.rkt @@ -12,7 +12,10 @@ pkg/lib setup/getinfo) -(module test racket/base) +;; Find packages in the same way as "link-all.rkt", but packs +;; them into ".zip" files and adds them to a catalog. + +;; Used by the top-level Makefile in the main Racket repository. (define pack-dest-dir #f) (define catalog-dirs null)