[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d157167 258/271: Strip headers. Use make dependencies.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master d157167 258/271: Strip headers. Use make dependencies. |
Date: |
Thu, 05 Feb 2015 18:31:47 +0000 |
branch: master
commit d157167af9f109c5a6c7dd7d862f48dde2ec139a
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Strip headers. Use make dependencies.
---
Makefile | 13 +++++++------
scripts/download-dependencies.el | 7 +++++++
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 4c00db7..2d37cd6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
EMACS = emacs
+DEPENDENCIES = libraries/ert-async.el libraries/js2-mode.el
all: clean compile test
-bench:
+bench: ${DEPENDENCIES}
${EMACS} -Q \
-L . \
-L libraries \
@@ -10,20 +11,20 @@ bench:
-l benchmark/context-coloring-benchmark \
-f context-coloring-benchmark-run
-compile:
+compile: ${DEPENDENCIES}
${EMACS} -Q -batch \
-L . \
-L libraries \
-f batch-byte-compile *.el libraries/*.el
clean:
- rm -f *.elc libraries/*.elc
+ rm -f *.elc libraries/*.elc ${DEPENDENCIES}
-deps:
+${DEPENDENCIES}:
${EMACS} -Q -batch \
-l scripts/download-dependencies.el
-test:
+test: ${DEPENDENCIES}
${EMACS} -Q -batch \
-L . \
-L libraries \
@@ -33,4 +34,4 @@ test:
-l test/context-coloring-test.el \
-f ert-run-tests-batch-and-exit
-.PHONY: all bench compile clean deps test
+.PHONY: all bench compile clean test
diff --git a/scripts/download-dependencies.el b/scripts/download-dependencies.el
index 0734d77..37f243b 100644
--- a/scripts/download-dependencies.el
+++ b/scripts/download-dependencies.el
@@ -22,6 +22,12 @@
(defun resolve-path (path)
(expand-file-name path directory))
+(defun strip-headers ()
+ (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.
+ )
+
(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)
@@ -30,4 +36,5 @@
(destination (resolve-path (concat "../libraries/" basename))))
(when (null (file-exists-p destination))
(with-current-buffer (url-retrieve-synchronously file)
+ (strip-headers)
(write-file destination))))))
- [elpa] master 9e14226 135/271: Merge branch 'feature/language-generalization' into develop, (continued)
- [elpa] master 9e14226 135/271: Merge branch 'feature/language-generalization' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7473cc9 169/271: Improve documentation and error handling for async tests., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b468d1c 166/271: Improve block scope test. Rename and document block scope variable., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d411168 175/271: Revert to single var., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4c5f3ab 145/271: Fix first-run bug, passing js2-mode test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 15bfad7 165/271: Renames., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4d73262 152/271: Speed up local name lookup., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4fee39d 174/271: Remove .jslintrc files., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 903d938 176/271: Update readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d48e8cc 057/271: Add benchmark., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d157167 258/271: Strip headers. Use make dependencies.,
Jackson Ray Hamilton <=
- [elpa] master 63e2590 207/271: Merge branch 'develop', Jackson Ray Hamilton, 2015/02/05
- [elpa] master d4ddaa6 160/271: Use edge js2-mode., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ef461da 230/271: Stop maintaining benchmarks in readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 5e46686 173/271: Remove JS tests and benchmarks. Remove color schemer., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f9c3de8 252/271: Version 3.1.1., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f2b5d79 264/271: Remove unnecessary .elpaignore., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 75f6705 251/271: Fix on Windows., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 8665ff3 233/271: Simplify `context-coloring-set-colors'., Jackson Ray Hamilton, 2015/02/05
- [elpa] master eaece82 263/271: Version 4.0.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master d885920 231/271: Merge branch 'feature/comments-and-strings' into develop, Jackson Ray Hamilton, 2015/02/05