mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
Fix Google Calendar build step
This commit is contained in:
parent
7d7fe74a01
commit
1b38f33286
|
@ -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"))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user