]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix: also use $EMACS env var in compilation
authorJoao Tavora <joaotavora@gmail.com>
Fri, 16 Nov 2012 15:15:56 +0000 (15:15 +0000)
committerJoao Tavora <joaotavora@gmail.com>
Fri, 16 Nov 2012 15:15:56 +0000 (15:15 +0000)
Rakefile

index c68929c2c3663f5506189cc531d5825c8ddf0c69..d1332181a88e0e73724f367268d4bfe2381f828a 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -2,6 +2,8 @@
 
 require 'fileutils'
 
+$EMACS=ENV["EMACS"] || "emacs"
+
 def find_version
   File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
   $version = $1
@@ -11,7 +13,6 @@ FileUtils.mkdir_p('pkg')
 
 desc "run tests in batch mode"
 task :tests do
-  $EMACS=ENV["EMACS"] || "emacs"
   sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert"
 end
 
@@ -87,7 +88,7 @@ end
 desc "Compile yasnippet.el into yasnippet.elc"
 
 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
 task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')