diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-05-23 23:23:46 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-05-23 23:23:46 +0200 |
commit | ef777b73dcd53f7341c32fdf04b39906c86087f3 (patch) | |
tree | 2f115b5cf083dea6424e5b069666568a4468b407 /scheme/plt/geiser/modules.rkt | |
parent | 94f76a1565f09d189d9f2cef6d3df7860321709e (diff) | |
download | geiser-guile-ef777b73dcd53f7341c32fdf04b39906c86087f3.tar.gz geiser-guile-ef777b73dcd53f7341c32fdf04b39906c86087f3.tar.bz2 |
PLT: Completing the .ss -> .rkt transition.
Diffstat (limited to 'scheme/plt/geiser/modules.rkt')
-rw-r--r-- | scheme/plt/geiser/modules.rkt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scheme/plt/geiser/modules.rkt b/scheme/plt/geiser/modules.rkt index 829cf77..2de8e35 100644 --- a/scheme/plt/geiser/modules.rkt +++ b/scheme/plt/geiser/modules.rkt @@ -1,4 +1,4 @@ -;;; modules.ss -- module metadata +;;; modules.rkt -- module metadata ;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz @@ -87,16 +87,19 @@ (define path->symbol (compose string->symbol path->string)) (define (path->entry path) - (and (bytes=? (or (filename-extension path) #"") #"ss") - (let ((path (path->string path))) - (substring path 0 (- (string-length path) 3))))) + (let ((ext (filename-extension path))) + (and ext + (or (bytes=? ext #"rkt") (bytes=? ext #"ss")) + (let ((path (path->string path))) + (substring path 0 (- (string-length path) 3)))))) (define (visit-module-path path kind acc) (case kind ((file) (let ((entry (path->entry path))) (if entry (cons entry acc) acc))) ((dir) (cond ((skippable-dir? path) (values acc #f)) - ((file-exists? (build-path path "main.ss")) + ((or (file-exists? (build-path path "main.rkt")) + (file-exists? (build-path path "main.ss"))) (cons (path->string path) acc)) (else acc))) (else acc))) @@ -144,4 +147,4 @@ (startup) -;;; modules.ss ends here +;;; modules.rkt ends here |