Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
Add 'default' task to display output of 'git status' except '*.markdo…
Browse files Browse the repository at this point in the history
…wn' files.

Signed-off-by: Matt Aimonetti <mattaimonetti@gmail.com>
  • Loading branch information
kwatch authored and mattetti committed Jan 20, 2009
1 parent a879a1c commit bf1c8e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions book-content/jp/Rakefile
Expand Up @@ -61,6 +61,12 @@ EN_DIR = "../en"
#end


task :default do |t|
#sh "git status | egrep ' (modifield: ).*\\.markdown$'"
sh "git status | egrep -v '[ \t]([0-9].*|toc)\\.markdown$'"
end


## usage: rake path/to/file.markdown.trans # create *.trans from ../en/path/to/file.markdown
desc "add '.EN' prefix and save as '*.trans' file."
#rule '.trans' => proc {|path| "#{EN_DIR}/#{path.sub(/\.trans\z/, '')}" } do |t| # infinite recursive
Expand Down

0 comments on commit bf1c8e9

Please sign in to comment.