Skip to content

Commit

Permalink
clobber generated man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 12, 2010
1 parent 7e2ea90 commit 0d3c2b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rake/clean'
require 'rake/testtask'


Expand Down Expand Up @@ -61,18 +62,17 @@ multitask :daemons => %w( daemon:git daemon:gem )
#

if command? :ronn
CLOBBER.include('man/*.{1,5}')
CLOBBER.include('man/*.{1,5}.html')

desc "Show the manual"
task :man => "man:build" do
exec "man man/man1/rip.1"
exec "man man/rip.1"
end

desc "Build the manual"
task "man:build" do
sh "ronn -br5 --organization=DEFUNKT --manual='rip manual' man/*.ronn"
sh "mv man/*.1 man/man1/"
sh "mv man/*.1.html man/man1/"
sh "mv man/*.5 man/man5/"
sh "mv man/*.5.html man/man5/"
end
end

Expand Down
2 changes: 2 additions & 0 deletions man/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.[15]
*.[15].html
2 changes: 0 additions & 2 deletions man/man1/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions man/man5/.gitignore

This file was deleted.

0 comments on commit 0d3c2b0

Please sign in to comment.