diff --git a/collects/framework/private/frame.rkt b/collects/framework/private/frame.rkt
index f8d7ab4c2f..46c89c737e 100644
--- a/collects/framework/private/frame.rkt
+++ b/collects/framework/private/frame.rkt
@@ -2410,14 +2410,11 @@
(define memory-canvases '())
(define show-memory-text?
- (or (with-handlers ([exn:fail:filesystem?
- (λ (x) #f)])
+ (or (with-handlers ([exn:fail:filesystem? (λ (x) #f)])
(directory-exists? (collection-path "repo-time-stamp")))
- (with-handlers ([exn:fail:filesystem?
- (λ (x) #f)])
+ (with-handlers ([exn:fail:filesystem? (λ (x) #f)])
(let ([fw (collection-path "framework")])
- (or (directory-exists? (build-path fw ".svn"))
- (directory-exists? (build-path fw "CVS")))))))
+ (directory-exists? (build-path fw 'up 'up ".git"))))))
(define bday-click-canvas%
(class canvas%
diff --git a/collects/games/paint-by-numbers/all-problems.rkt b/collects/games/paint-by-numbers/all-problems.rkt
index bd8886b9d1..c63760d161 100644
--- a/collects/games/paint-by-numbers/all-problems.rkt
+++ b/collects/games/paint-by-numbers/all-problems.rkt
@@ -14,22 +14,18 @@
(define-syntax (mk-units stx)
(syntax-case stx ()
[(_)
- (with-syntax ([(unit-names ...)
- (let loop ([files
- (call-with-input-file
- (build-path (collection-path "games" "paint-by-numbers")
- "problems" "directory")
- read)])
- (cond
- [(null? files) null]
- [(or (member (car files) '("CVS" ".svn"))
- (not (file-exists? (build-path (collection-path "games" "paint-by-numbers")
- "problems" (car files)))))
- (loop (cdr files))]
- [else
- (cons (car files)
- (loop (cdr files)))]))])
- (syntax (list (include (build-path "problems" unit-names)) ...)))]))
+ (with-syntax
+ ([(unit-names ...)
+ (let ([probdir (collection-path "games" "paint-by-numbers") "problems"])
+ (let loop ([files
+ (call-with-input-file (build-path probdir "directory")
+ read)])
+ (cond
+ [(null? files) null]
+ [(not (file-exists? (build-path probdir (car files))))
+ (loop (cdr files))]
+ [else (cons (car files) (loop (cdr files)))])))])
+ #'(list (include (build-path "problems" unit-names)) ...))]))
(define units (mk-units))
diff --git a/collects/htdp/master.rkt b/collects/htdp/master.rkt
index 3badf0e388..0f2720cc9f 100644
--- a/collects/htdp/master.rkt
+++ b/collects/htdp/master.rkt
@@ -35,12 +35,12 @@
(make-object bitmap% (build-path (collection-path "icons") "trumpet.xbm") 'xbm))
#|
- cd ~.../plt/collects/icons
+ cd ~.../plt/collects/icons
cp where/ever/trumpet.xbm .
- svn update
- svn trumpet.xbm
- svn setprop svn:mime-type image/x-xbitmap
- svn commit -m "added trumpet image"
+ git pull
+ ...make trumpet.xbm...
+ git commit -m "added trumpet image"
+ git push
|#
#| ------------------------------------------------------------------------
diff --git a/collects/meta/build/make-patch b/collects/meta/build/make-patch
index ea8bba724d..7be7168f2b 100755
--- a/collects/meta/build/make-patch
+++ b/collects/meta/build/make-patch
@@ -10,11 +10,11 @@ Instructions:
up.)
I do this:
- cd
- svn co http://svn.plt-scheme.org/plt/tags/
For further details on the benchmarks here, see the benchmark source and - infrastructure, which is available form the PLT SVN repository:
+ infrastructure, which is available form the PLT git repository:http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/common/
diff --git a/collects/tests/racket/benchmarks/common/tabulate.rkt b/collects/tests/racket/benchmarks/common/tabulate.rkt index bb9babf32b..1154f42614 100755 --- a/collects/tests/racket/benchmarks/common/tabulate.rkt +++ b/collects/tests/racket/benchmarks/common/tabulate.rkt @@ -34,7 +34,7 @@ exec racket -qu "$0" ${1+"$@"} (once-each [("--graph") "generate graphs instead of tables (unless --multi)" (generate-graph #t)] - [("--links") "benchmark links to SVN" + [("--links") "benchmark links to git" (include-links #t)] [("--multi") name "generate multiple pages for different views of data" (base-link-filename name)] diff --git a/collects/tests/racket/benchmarks/rx/index-template.html b/collects/tests/racket/benchmarks/rx/index-template.html index 279ccaa2e2..5387758d34 100644 --- a/collects/tests/racket/benchmarks/rx/index-template.html +++ b/collects/tests/racket/benchmarks/rx/index-template.html @@ -64,7 +64,7 @@For further details on the benchmarks here, see the benchmark source and - infrastructure, which is available form the PLT SVN repository:
+ infrastructure, which is available form the PLT git repository:http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/rx
diff --git a/collects/version/check.rkt b/collects/version/check.rkt index 61d4ea5d6d..7a3c706acf 100644 --- a/collects/version/check.rkt +++ b/collects/version/check.rkt @@ -77,7 +77,7 @@ [stable (getver 'stable)] [recent (getver 'recent)]) (cond - ;; we have the newest version (can be > if we have an svn build) + ;; we have the newest version (can be > if we have a build from git) [(version<=? recent current) 'ok] ;; we're stable, but there's a newer version [(version<=? stable current) `(ok-but ,recent)] diff --git a/collects/web-server/private/configure.rkt b/collects/web-server/private/configure.rkt index b89e28094d..01ed764e67 100644 --- a/collects/web-server/private/configure.rkt +++ b/collects/web-server/private/configure.rkt @@ -777,7 +777,7 @@ (let ([p (build-path from name)]) (cond [(directory-exists? p) - (unless (member (path->string name) '("CVS" ".svn")) ; yuck + (unless (regexp-match? #rx"^(?:[.](?:git.*|svn)|CVS)$" (path->string name)) ; yuck (let ([dest (build-path to name)]) (ensure-directory-shallow dest) (for-each (lambda (x) (ensure* p dest x)) diff --git a/src/README b/src/README index 13121274cf..742395d059 100644 --- a/src/README +++ b/src/README @@ -101,8 +101,8 @@ Quick instructions: Detailed instructions: 0. If you have an old Racket installation in the target directory, - remove it (unless you are using Subversion with an "in-place" - build as described below). + remove it (unless you are using an "in-place" build from a + repository as described below). Also, make sure that you have libraries and header files for Xft and Cairo (v1.23 and up) if you would like support for font @@ -122,15 +122,15 @@ Detailed instructions: It's better to run the build in a directory other than the one containing `configure', especially if you're getting sources via - Subversion. A common way to start a Subversion-based build is: + git. A common way to start a git-based build is: cd [here] mkdir build cd build where "[here]" is the directory containing this `README' file and - the `configure' script. The Subversion repository is configured - to support this convention by ignoring `build' in this directory. + the `configure' script. The git repository is configured to support + this convention by ignoring `build' in this directory. A separate build directory is better in case the Makefile organization changes, or in case the Makefiles lack some @@ -238,18 +238,17 @@ Detailed instructions: clean build directory when changing the --prefix value, because the path gets wired into shared objects. - If you build frequently from the Subversion-based sources, beware - that you may accumulate user- and version-specific information in - your "add-ons" directory, which you can most easily find by - evaluating + If you build frequently from the git-based sources, beware that + you may accumulate user- and version-specific information in your + "add-ons" directory, which you can most easily find by evaluating (find-system-path 'addon-dir) in Racket. In addition, if you configure with --enabled-shared, you may accumlate many unused versions of the dynamic libraries in your installation target. -After an "in-place" install without Subversion, the racket/src directory -is no longer needed, and it can be safely deleted. Build information -is recorded in a "buildinfo" file in the installation. +After an "in-place" install without git, the racket/src directory is +no longer needed, and it can be safely deleted. Build information is +recorded in a "buildinfo" file in the installation. For a build without --prefix (or with --enable-origtree) and without --enable-shared, you can safely move the install tree, because all diff --git a/src/racket/gc/upgrade.rkt b/src/racket/gc/upgrade.rkt index 9246374288..2b58f4c47b 100644 --- a/src/racket/gc/upgrade.rkt +++ b/src/racket/gc/upgrade.rkt @@ -1,7 +1,7 @@ (define old-dir (current-directory)) (define new-dir "~/Desktop/gc6.7") -(define really-svn? #t) +(define really-git? #t) (require mzlib/file mzlib/process) @@ -22,13 +22,14 @@ (fill-table new-dir new) (fill-table old-dir old) -(hash-table-for-each old (lambda (k v) - (let ([b (path->bytes k)]) - (when (or (regexp-match #rx#"CVS" b) - (regexp-match #rx#"[.]svn" b) - (regexp-match #rx#"upgrade[.]ss$" b) - (regexp-match #rx#"gc[.]h$" b)) - (hash-table-remove! old k))))) +(hash-table-for-each + old + (lambda (k v) + (let ([b (path->bytes k)]) + (when (or (regexp-match? #rx#"^(?:^|/)(?:[.](?:git.*|svn)|CVS)(?:/|$)$" b) + (regexp-match? #rx#"upgrade[.]ss$" b) + (regexp-match? #rx#"gc[.]h$" b)) + (hash-table-remove! old k))))) (define (content f n) (with-input-from-file f (lambda () (read-bytes n)))) @@ -66,7 +67,7 @@ (define (go cmd) (printf "CMD: ~a~n" cmd) - (when really-svn? + (when really-git? (system cmd))) (hash-table-for-each new @@ -82,13 +83,13 @@ (go (get-output-string s))) (let ([s (open-output-string)]) - (fprintf s "cd ~a; svn add " (path->string old-dir)) + (fprintf s "cd ~a; git add " (path->string old-dir)) (hash-table-for-each new (lambda (k v) (fprintf s "~a " (path->string k)))) (go (get-output-string s))) (let ([s (open-output-string)]) - (fprintf s "cd ~a; svn remove " (path->string old-dir)) + (fprintf s "cd ~a; git rm " (path->string old-dir)) (hash-table-for-each old (lambda (k v) (fprintf s "~a " (path->string k)))) (go (get-output-string s)))