|
@@ -26,12 +26,13 @@ in REPO-DIR. Optionally, OLDREV is the revision prior to the last push."
|
26
|
26
|
"Compile the blog to a STAGING directory as specified in .coleslawrc."
|
27
|
27
|
(ensure-directories-exist staging)
|
28
|
28
|
(with-current-directory staging
|
29
|
|
- (dolist (dir (list (app-path "themes/~a/css" (theme *config*))
|
30
|
|
- (app-path "themes/~a/img" (theme *config*))
|
31
|
|
- (app-path "themes/~a/js" (theme *config*))
|
32
|
|
- (merge-pathnames "static" (repo-dir *config*))))
|
33
|
|
- (when (probe-file dir)
|
34
|
|
- (run-program "rsync --delete -raz ~a ." dir)))
|
|
29
|
+ (let ((theme-dir (find-theme (theme *config*))))
|
|
30
|
+ (dolist (dir (list (merge-pathnames "css" theme-dir)
|
|
31
|
+ (merge-pathnames "img" theme-dir)
|
|
32
|
+ (merge-pathnames "js" theme-dir)
|
|
33
|
+ (repo-path "static")))
|
|
34
|
+ (when (probe-file dir)
|
|
35
|
+ (run-program "rsync --delete -raz ~a ." dir))))
|
35
|
36
|
(do-subclasses (ctype content)
|
36
|
37
|
(publish ctype))
|
37
|
38
|
(do-subclasses (itype index)
|