diff --git a/pkgs/racket-pkgs/racket-index/setup/scribble.rkt b/pkgs/racket-pkgs/racket-index/setup/scribble.rkt index b71e4e918b..098593c64e 100644 --- a/pkgs/racket-pkgs/racket-index/setup/scribble.rkt +++ b/pkgs/racket-pkgs/racket-index/setup/scribble.rkt @@ -230,8 +230,11 @@ ;; Ensure that databases are created: (define (touch-db db-file) - (doc-db-disconnect - (doc-db-file->connection db-file #t))) + (unless (file-exists? db-file) + (define-values (base name dir?) (split-path db-file)) + (make-directory* base) + (doc-db-disconnect + (doc-db-file->connection db-file #t)))) (when (ormap can-build*? main-docs) (touch-db main-db)) (when (ormap can-build*? user-docs)