mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix: also use $EMACS env var in compilation
This commit is contained in:
parent
0778a1b61b
commit
7e4876169b
5
Rakefile
5
Rakefile
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
|
$EMACS=ENV["EMACS"] || "emacs"
|
||||||
|
|
||||||
def find_version
|
def find_version
|
||||||
File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
|
File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
|
||||||
$version = $1
|
$version = $1
|
||||||
@ -11,7 +13,6 @@ FileUtils.mkdir_p('pkg')
|
|||||||
|
|
||||||
desc "run tests in batch mode"
|
desc "run tests in batch mode"
|
||||||
task :tests do
|
task :tests do
|
||||||
$EMACS=ENV["EMACS"] || "emacs"
|
|
||||||
sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert"
|
sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -87,7 +88,7 @@ end
|
|||||||
desc "Compile yasnippet.el into yasnippet.elc"
|
desc "Compile yasnippet.el into yasnippet.elc"
|
||||||
|
|
||||||
rule '.elc' => '.el' do |t|
|
rule '.elc' => '.el' do |t|
|
||||||
sh "emacs --batch -L . --eval \"(byte-compile-file \\\"#{t.source}\\\")\""
|
sh "#{$EMACS} --batch -L . --eval \"(byte-compile-file \\\"#{t.source}\\\")\""
|
||||||
end
|
end
|
||||||
task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')
|
task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user