mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
* Now byte compiles correctly and with no warnings
* added :compile task to Rakefile (reported by Christoph Conrad)
This commit is contained in:
12
Rakefile
12
Rakefile
@@ -50,11 +50,6 @@ desc "Generate document"
|
||||
task :doc => FileList['doc/*.rst'].ext('html')
|
||||
|
||||
namespace :doc do
|
||||
task :upload do
|
||||
sh "rsync -avz --exclude '.svn' doc " +
|
||||
"pluskid.lifegoo.com:~/public_html/upload/project/yasnippet/"
|
||||
end
|
||||
|
||||
task :archive do
|
||||
release_dir = "pkg/yasnippet-#{$version}"
|
||||
FileUtils.mkdir_p(release_dir)
|
||||
@@ -63,4 +58,11 @@ namespace :doc do
|
||||
end
|
||||
end
|
||||
|
||||
desc "Compile yasnippet.el into yasnippet.elc"
|
||||
|
||||
rule '.elc' => '.el' do |t|
|
||||
sh "emacs --batch -L . --eval \"(byte-compile-file \\\"#{t.source}\\\")\""
|
||||
end
|
||||
task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')
|
||||
|
||||
task :default => :doc
|
||||
|
||||
Reference in New Issue
Block a user