From 1b38f33286fbca9e9e079cb0f87fa96f1e0372ea Mon Sep 17 00:00:00 2001 From: David Holm Date: Sun, 9 Mar 2014 13:01:23 +0100 Subject: [PATCH] Fix Google Calendar build step --- recipes/google-calendar.rcp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/recipes/google-calendar.rcp b/recipes/google-calendar.rcp index 22a58da7..7a21cceb 100644 --- a/recipes/google-calendar.rcp +++ b/recipes/google-calendar.rcp @@ -4,8 +4,10 @@ :pkgname "bateast/google-calendar" :depends (google-contacts json) :prepare (progn - (autoload 'google-calendar/get-calendar "google-calendar" nil t) - (autoload 'google-calendar/fetch-calendars "google-calendar" nil t)) - :build (progn - (require 'ob-tangle) - (org-babel-tangle-file "google-calendar.org"))) + (autoload 'google-calendar/get-calendar "google-calendar.el" nil t) + (autoload 'google-calendar/fetch-calendars "google-calendar.el" nil t)) + :post-init (let ((source-file (expand-file-name "google-calendar.org" (el-get-package-directory "google-calendar"))) + (target-file (expand-file-name "google-calendar.el" (el-get-package-directory "google-calendar")))) + (when (not (file-exists-p target-file)) + (require 'ob-tangle) + (org-babel-tangle-file source-file target-file "emacs-lisp"))))