From e98003f8fd3454497619f98b1d903f5c4a9c01d5 Mon Sep 17 00:00:00 2001 From: John Miller Date: Fri, 9 Sep 2016 10:07:35 -0500 Subject: [PATCH] Make zeroein.el work with subtrees --- lisp/zeroein.el | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lisp/zeroein.el b/lisp/zeroein.el index 1768144..aee2cdb 100755 --- a/lisp/zeroein.el +++ b/lisp/zeroein.el @@ -50,6 +50,18 @@ '("ein-mumamo" "nxhtml" "markdown-mode" "websocket" "request" "auto-complete" "popup" "fuzzy" "pos-tip" "smartrep")) +(defvar zeroein:subtrees + '("lib/websocket https://github.com/ahyatt/emacs-websocket.git master --squash" + "lib/auto-complete https://github.com/auto-complete/auto-complete.git master --squash" + "lib/fuzzy https://github.com/auto-complete/fuzzy-el.git master --squash" + "lib/popup https://github.com/auto-complete/popup-el.git master --squash" + "lib/pos-tip https://github.com/emacsmirror/pos-tip.git master --sqaush" + "lib/smartrep https://github.com/myuhe/smartrep.el.git master --squash" + "lib/markdown-mode https://github.com/defunkt/markdown-mode.git master --squash" + "lib/ert https://github.com/ohler/ert.git master --squash" + "lib/request https://github.com/tkf/emacs-request master --squash" + "lib/ein-mumamo https://github.com/millejoh/ein-mumamo master --squash")) + ;; Loading the new python.el fails in Emacs 23. (when (>= emacs-major-version 24) (add-to-list 'zeroein:dependencies "python")) @@ -57,9 +69,9 @@ ;;; Install dependencies -(call-process "git" nil (get-buffer "*Messages*") nil - "submodule" "update" "--init") - +(loop for subtree in zeroein:subtrees + do (call-process "git" nil nil nil + "subtree" "pull" "--prefix" subtree)) ;;; `load-path' configurations