Recently Written · git

coleslaw

Emacs mode for the "Coleslaw" site generator written in Common Lisp.

git clone https://github.com/equwal/coleslaw

Log | Files | Refs


commit dd53a77595d9a25601c949c511a67dc9675ec57b
Masataro Asai <guicho2.71828@gmail.com>
2019-10-27 14:58:13 -0400

move all options to the default-initargs, for maximum customizability

 plugins/rsync.lisp | 2 +-
 src/config.lisp    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/rsync.lisp b/plugins/rsync.lisp
index 319eb6e..7ce605e 100644
--- a/plugins/rsync.lisp
+++ b/plugins/rsync.lisp
@@ -11,7 +11,7 @@
 (defvar *args* nil)
 
 (defmethod deploy (staging)
-  (coleslaw::run-program "rsync --delete ~{~A~^ ~} -avz ~A ~A" *args*
+  (coleslaw::run-program "rsync ~{~A~^ ~} ~A ~A" *args*
                          (merge-pathnames staging)
                          (merge-pathnames (deploy-dir *config*))))
 
diff --git a/src/config.lisp b/src/config.lisp
index 997e4db..9d5a45f 100644
--- a/src/config.lisp
+++ b/src/config.lisp
@@ -21,7 +21,7 @@
   (:default-initargs
    :feeds        nil
    :license      nil
-   :plugins      '((rsync "--delete"))
+   :plugins      '((rsync "-avz" "--delete" "--exclude" ".git/" "--exclude" ".gitignore" "--copy-links"))
    :sitenav      nil
    :excerpt-sep  "<!--more-->"
    :charset      "UTF-8"