From b3c89eda7c0b60930c5bd9b276b0e49d9573135c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 27 Dec 2014 21:41:36 +0100 Subject: [PATCH] Use cask to manage/load dependencies --- Cask | 6 ++++++ Makefile | 6 ++---- articles/Cask | 6 ++++++ articles/Makefile | 5 +---- 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 Cask create mode 100644 articles/Cask diff --git a/Cask b/Cask new file mode 100644 index 0000000..f2f688d --- /dev/null +++ b/Cask @@ -0,0 +1,6 @@ +(source gnu) +(source melpa) +(source org) + +(depends-on "org-plus-contrib") +(depends-on "htmlize") diff --git a/Makefile b/Makefile index edf17bf..9acf057 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,8 @@ clean: export: clean $(MAKE) -C articles export - emacs -L $(CURDIR) -L ~/.emacs.d/vendor-lisp/org/lisp \ - -L ~/.emacs.d/vendor-lisp/org/contrib/lisp -batch -l project.el \ - -f org-publish-all + cask exec emacs -L $(CURDIR) -batch -l project.el -f org-publish-all -publish: export +publish: rsync -avuz --exclude=*~ --exclude=dotfiles/ --delete _publish/ \ ryuslash.org:public_html/orgweb diff --git a/articles/Cask b/articles/Cask new file mode 100644 index 0000000..f2f688d --- /dev/null +++ b/articles/Cask @@ -0,0 +1,6 @@ +(source gnu) +(source melpa) +(source org) + +(depends-on "org-plus-contrib") +(depends-on "htmlize") diff --git a/articles/Makefile b/articles/Makefile index d55e03d..b1653ca 100644 --- a/articles/Makefile +++ b/articles/Makefile @@ -1,7 +1,4 @@ all: export: - emacs -L $(CURDIR) -L ~/.emacs.d/vendor-lisp/org/lisp \ - -L ~/.emacs.d/vendor-lisp/org/contrib/lisp -batch -l project.el \ - -eval "(progn (require 'package) (package-initialize))" \ - -f org-publish-all + cask exec emacs -L $(CURDIR) -batch -l project.el -f org-publish-all