[Groonga-commit] groonga/groonga-beginners-book-ja at a57d967 [master] To be deleted automatically generated files

Back to archive index

Masafumi Yokoyama null+****@clear*****
Sun Mar 1 00:34:10 JST 2015


Masafumi Yokoyama	2015-03-01 00:34:10 +0900 (Sun, 01 Mar 2015)

  New Revision: a57d9674e47cfc4f409f58c91e34b67f0cd4ea21
  https://github.com/groonga/groonga-beginners-book-ja/commit/a57d9674e47cfc4f409f58c91e34b67f0cd4ea21

  Message:
    To be deleted automatically generated files

  Modified files:
    .gitignore
    Rakefile

  Modified: .gitignore (+1 -0)
===================================================================
--- .gitignore    2015-03-01 00:04:56 +0900 (71c129c)
+++ .gitignore    2015-03-01 00:34:10 +0900 (da81eda)
@@ -1,3 +1,4 @@
 *.html
 *.pdf
 *.epub
+/groonga-beginners-book-ja-*/

  Modified: Rakefile (+14 -0)
===================================================================
--- Rakefile    2015-03-01 00:04:56 +0900 (c209822)
+++ Rakefile    2015-03-01 00:34:10 +0900 (6681662)
@@ -1,4 +1,5 @@
 require "yaml"
+require "rake/clean"
 
 def base_dir
   File.expand_path(File.dirname(__FILE__))
@@ -12,6 +13,17 @@ def configurations
   @configurations ||= YAML.load(File.read(config_path))
 end
 
+def bookname
+  configurations["bookname"]
+end
+
+CLEAN.include(FileList["*.html"])
+CLEAN.include("#{bookname}-pdf/")
+CLEAN.include("#{bookname}-epub/")
+CLEAN.include(FileList["#{bookname}-*-*-*/"])
+CLOBBER.include("#{bookname}.pdf")
+CLOBBER.include("#{bookname}.epub")
+
 namespace :generate do
   desc "generate HTML"
   task :html do |re_path|
@@ -20,11 +32,13 @@ namespace :generate do
 
   desc "generate PDF"
   task :pdf do
+    rm_rf("#{bookname}-pdf/")
     sh("review-pdfmaker", config_path)
   end
 
   desc "generate EPUB"
   task :epub do
+    rm_rf("#{bookname}-epub/")
     sh("review-epubmaker", config_path)
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index