Skip to content

Commit

Permalink
tests: remove dash.el manually to avoid problems w/ url-copy-file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hi-Angel committed Sep 22, 2024
1 parent e254aec commit 83f68aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.ninja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ rule compile_file
command = emacs -batch --eval "(setq byte-compile-error-on-warn t)" $args -f batch-byte-compile $in

build dash.el: batch_emacs
args = --eval "(progn (require 'url) (url-copy-file \"https://raw.githubusercontent.com/magnars/dash.el/master/dash.el\" \"dash.el\"))"
# In the code below we remove dash.el manually, because when it's "dirty",
# url-copy-file won't overwrite it (it may ignore it but that's different).
args = --eval "(progn (require 'url)$
(delete-file \"dash.el\")$
(url-copy-file \"https://raw.githubusercontent.com/magnars/dash.el/master/dash.el\" \"dash.el\"))"

build color-identifiers-mode.elc: compile_file color-identifiers-mode.el | dash.el
args = -l dash.el
Expand Down

0 comments on commit 83f68aa

Please sign in to comment.