]> code.delx.au - gnu-emacs-elpa/blobdiff - Rakefile
Change Emacs installation method for Travis CI
[gnu-emacs-elpa] / Rakefile
index 2965eb9d5ba5a7699cb4a23e34901a26a8b406c4..9986b7568dc15b44f92f72a01097ed9b86ff4651 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -94,7 +94,8 @@ 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 \"(setq byte-compile-error-on-warn t)\"" +
+     " -f batch-byte-compile #{t.source}"
 end
 task :compile => FileList["yasnippet.el"].ext('elc')