|
|
@ -160,7 +160,7 @@ version print the version" (current-server-port) (make-publish-di
|
|
|
|
(error 'publish "aborted because target directory for publishing (~a) can't contain source directory (~a)" target-dir source-dir))
|
|
|
|
(error 'publish "aborted because target directory for publishing (~a) can't contain source directory (~a)" target-dir source-dir))
|
|
|
|
(when (equal? target-dir (current-directory))
|
|
|
|
(when (equal? target-dir (current-directory))
|
|
|
|
(error 'publish "aborted because target directory for publishing (~a) can't be the same as current directory (~a)" target-dir (current-directory)))
|
|
|
|
(error 'publish "aborted because target directory for publishing (~a) can't be the same as current directory (~a)" target-dir (current-directory)))
|
|
|
|
(displayln "publishing ...")
|
|
|
|
(displayln (format "publishing to ~a ..." target-dir))
|
|
|
|
(when (directory-exists? target-dir)
|
|
|
|
(when (directory-exists? target-dir)
|
|
|
|
(delete-directory/files target-dir))
|
|
|
|
(delete-directory/files target-dir))
|
|
|
|
(copy-directory/files source-dir target-dir)
|
|
|
|
(copy-directory/files source-dir target-dir)
|
|
|
@ -169,7 +169,7 @@ version print the version" (current-server-port) (make-publish-di
|
|
|
|
(and (unpublished-path? p)
|
|
|
|
(and (unpublished-path? p)
|
|
|
|
(not ((setup:extra-published-path?) p))))
|
|
|
|
(not ((setup:extra-published-path?) p))))
|
|
|
|
(for-each delete-it (find-files delete-from-publish-dir? target-dir)))
|
|
|
|
(for-each delete-it (find-files delete-from-publish-dir? target-dir)))
|
|
|
|
(displayln (format "completed to ~a" target-dir)))
|
|
|
|
(displayln "completed"))
|
|
|
|
|
|
|
|
|
|
|
|
(define (handle-unknown command)
|
|
|
|
(define (handle-unknown command)
|
|
|
|
(if (regexp-match #rx"(shit|fuck)" command)
|
|
|
|
(if (regexp-match #rx"(shit|fuck)" command)
|
|
|
|