mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
* Rakefile: Handle unset `warnings' parameter
This commit is contained in:
parent
4b12f7de7a
commit
309fe157f6
7
Rakefile
7
Rakefile
@ -98,9 +98,12 @@ 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|
|
||||||
|
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)\"" +
|
sh "#{$EMACS} --batch -L . --eval \"(setq byte-compile-error-on-warn t)\"" +
|
||||||
" --eval \"(setq byte-compile-warnings #{ENV['warnings']})\"" +
|
"#{set_warnings} -f batch-byte-compile #{t.source}"
|
||||||
" -f batch-byte-compile #{t.source}"
|
|
||||||
end
|
end
|
||||||
task :compile => FileList["yasnippet.el"].ext('elc')
|
task :compile => FileList["yasnippet.el"].ext('elc')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user