@@ -45,8 +45,7 @@ namespace :book do
4545 end
4646
4747 desc 'build basic book formats'
48- task :build => [ :build_html , :build_epub , :build_fb2 , :build_pdf ] do
49- #task :build => [:build_html, :build_epub, :build_fb2, :build_mobi, :build_pdf] do
48+ task :build => [ :build_html , :build_epub , :build_fb2 , :build_mobi , :build_pdf ] do
5049 begin
5150 # Run check
5251 Rake ::Task [ 'book:check' ] . invoke
@@ -59,8 +58,7 @@ namespace :book do
5958 end
6059
6160 desc 'build basic book formats (for ci)'
62- task :ci => [ :build_html , :build_epub , :build_fb2 , :build_pdf ] do
63- #task :ci => [:build_html, :build_epub, :build_fb2, :build_mobi, :build_pdf] do
61+ task :ci => [ :build_html , :build_epub , :build_fb2 , :build_mobi , :build_pdf ] do
6462 # Run check, but don't ignore any errors
6563 Rake ::Task [ 'book:check' ] . invoke
6664 end
@@ -102,7 +100,6 @@ namespace :book do
102100
103101 end
104102
105- =begin
106103 desc 'build Mobi format'
107104 task :build_mobi => 'book/contributors.txt' do
108105 check_contrib ( )
@@ -111,7 +108,6 @@ namespace :book do
111108 sh "bundle exec asciidoctor-epub3 #{ params } -a ebook-format=kf8 progit.asc"
112109 puts " -- Mobi output at progit.mobi"
113110 end
114- =end
115111
116112 desc 'build PDF format'
117113 task :build_pdf => 'book/contributors.txt' do
@@ -135,8 +131,7 @@ namespace :book do
135131 begin
136132 puts 'Removing generated files'
137133
138- FileList [ 'book/contributors.txt' , 'progit.html' , 'progit-kf8.epub' , 'progit.epub' , 'progit.fb2.zip' , 'progit.pdf' ] . each do |file |
139- #FileList['book/contributors.txt', 'progit.html', 'progit-kf8.epub', 'progit.epub', 'progit.fb2.zip', 'progit.mobi', 'progit.pdf'].each do |file|
134+ FileList [ 'book/contributors.txt' , 'progit.html' , 'progit-kf8.epub' , 'progit.epub' , 'progit.fb2.zip' , 'progit.mobi' , 'progit.pdf' ] . each do |file |
140135 rm file
141136
142137 # Rescue if file not found
0 commit comments