[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9e177bf 268/271: Update headers and documentation for down
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 9e177bf 268/271: Update headers and documentation for download-dependencies.el. |
Date: |
Thu, 05 Feb 2015 18:31:57 +0000 |
branch: master
commit 9e177bfae3249b0092fbfb59b1ba895875be227a
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Update headers and documentation for download-dependencies.el.
---
scripts/download-dependencies.el | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/scripts/download-dependencies.el b/scripts/download-dependencies.el
index 37f243b..54211cc 100644
--- a/scripts/download-dependencies.el
+++ b/scripts/download-dependencies.el
@@ -1,4 +1,4 @@
-;; -*- lexical-binding: t; -*-
+;;; scripts/download-dependencies.el --- Get files for development. -*-
lexical-binding: t; -*-
;; Copyright (C) 2014-2015 Free Software Foundation, Inc.
@@ -17,17 +17,27 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
-(defconst directory (file-name-directory (or load-file-name buffer-file-name)))
+;; This script downloads some dependencies for development so they don't need
to
+;; be version-controlled.
+
+;;; Code:
+
+(defconst directory (file-name-directory (or load-file-name buffer-file-name))
+ "This file's directory.")
(defun resolve-path (path)
+ "Resolve a path relative to this file's directory."
(expand-file-name path directory))
(defun strip-headers ()
+ "Remove the http headers included in the output of
+`url-retrieve-synchronously'."
(goto-char 1)
(kill-paragraph 1) ; The headers are 1 paragraph. I hope.
(kill-line) ; A line separates the headers from the file's content.
)
+;; Download any missing dependencies.
(let ((files
'("https://raw.githubusercontent.com/mooz/js2-mode/master/js2-mode.el"
"https://raw.githubusercontent.com/rejeep/ert-async.el/master/ert-async.el")))
(make-directory (resolve-path "../libraries") t)
@@ -38,3 +48,5 @@
(with-current-buffer (url-retrieve-synchronously file)
(strip-headers)
(write-file destination))))))
+
+;;; download-dependencies.el ends here
- [elpa] master 30a24f9 265/271: Add 'packages/context-coloring/' from commit 'f2b5d796d4dffc71b10503a8ae119bfa3274978e', (continued)
- [elpa] master 30a24f9 265/271: Add 'packages/context-coloring/' from commit 'f2b5d796d4dffc71b10503a8ae119bfa3274978e', Jackson Ray Hamilton, 2015/02/05
- [elpa] master 03d111c 235/271: Cleanup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master eba74ae 192/271: Improve assertion functions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 127b312 225/271: Remove rear-nonsticky., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 441dde0 178/271: Cleanup, comments., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9fb06d8 254/271: Merge branch 'master' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5826178 239/271: Update the dispatch API., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3c8f842 195/271: Write failing property lookup test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4ac1eaa 242/271: Version 3.0.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b485897 186/271: Update benchmarks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9e177bf 268/271: Update headers and documentation for download-dependencies.el.,
Jackson Ray Hamilton <=
- [elpa] master 48ff468 220/271: Update linter., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a0fefc4 245/271: Add themes. Prepare for ELPA. Version 3.1.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 574b955 248/271: Update sentence spacing., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1f04586 172/271: Merge branch 'feature/js2-mode' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 87725bc 190/271: Positions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7b2a4c8 214/271: Merge branch 'develop', Jackson Ray Hamilton, 2015/02/05
- [elpa] master e210009 221/271: Flycheck link., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a62e98e 260/271: Update header installation instructions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 94bc0dc 229/271: Add note about comments and strings. Update screenshots., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 83eb0e2 255/271: Externalize the JavaScript scopifier., Jackson Ray Hamilton, 2015/02/05