Fix Google Calendar build step

This commit is contained in:
David Holm 2014-03-09 13:01:23 +01:00
parent 7d7fe74a01
commit 1b38f33286

View File

@ -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
(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 "google-calendar.org")))
(org-babel-tangle-file source-file target-file "emacs-lisp"))))