emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 309fe15 31/40: * Rakefile: Handle unset `warnings' paramet


From: Noam Postavsky
Subject: [elpa] master 309fe15 31/40: * Rakefile: Handle unset `warnings' parameter
Date: Wed, 26 Oct 2016 23:06:34 +0000 (UTC)

branch: master
commit 309fe157f60e537e94f95e1ce3505a3fcdbd4994
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    * Rakefile: Handle unset `warnings' parameter
---
 Rakefile |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Rakefile b/Rakefile
index df4bb7f..48a2086 100644
--- a/Rakefile
+++ b/Rakefile
@@ -98,9 +98,12 @@ end
 desc "Compile yasnippet.el into yasnippet.elc"
 
 rule '.elc' => '.el' do |t|
+  set_warnings = ""
+  if ENV['warnings']
+    set_warnings = " --eval \"(setq byte-compile-warnings 
#{ENV['warnings']})\""
+  end
   sh "#{$EMACS} --batch -L . --eval \"(setq byte-compile-error-on-warn t)\"" +
-     " --eval \"(setq byte-compile-warnings #{ENV['warnings']})\"" +
-     " -f batch-byte-compile #{t.source}"
+     "#{set_warnings} -f batch-byte-compile #{t.source}"
 end
 task :compile => FileList["yasnippet.el"].ext('elc')
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]