-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile
44 lines (36 loc) · 973 Bytes
/
rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
=begin
$: << 'lib'
require 'month'
@@version_str = Month::Version
def release_tag
( uber, major, minor ) = @@version_str.split( '.' ).collect! { |str|
str.to_i
}
"rel-#{ uber }-#{ major }-#{ minor }"
end
def release_dir_name
"month-#{ @@version_str }"
end
task :export_release do
Dir.chdir('../releases')
ext = "-d:ext:[email protected]:/var/cvs/month"
`cvs #{ ext } export -r #{ release_tag } -d #{ release_dir_name } month`
`tar zcvf month-#{ @@version_str }.tar.gz #{ release_dir_name }`
end
task :update_docs do
Dir.chdir( 'lib' )
`rdoc --op ../docs/`
end
=end
require 'hoe'
$:.unshift 'lib'
require 'month'
Hoe.new("month", Month::Version) do |p|
p.rubyforge_name = "month"
p.author = 'Francis Hwang'
p.description = p.paragraphs_of( 'README.txt', 0 ).first
p.summary = p.paragraphs_of( 'README.txt', 0 ).first
p.email = '[email protected]'
p.url = 'http://month.rubyforge.org/'
p.changes = p.paragraphs_of( 'changelog.txt', 0 ).first
end