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
| | require 'rubygems'
require 'hoe'
$:.unshift 'lib'
require 'mogilefs'
Hoe.plugin :seattlerb
Hoe.spec 'mogilefs-client' do
self.rubyforge_name = 'seattlerb'
developer 'Eric Wong', 'normalperson@yhbt.net'
# developer 'drbrain@segment7.net', 'Eric Hodel'
self.readme_file = "README"
self.history_file = "History"
self.url = "http://bogomips.org/mogilefs-client"
self.description = self.paragraphs_of("README", 1)
self.summary = "MogileFS client library for Ruby"
end
task :fix_perms do
IO.popen('git ls-tree -r HEAD^0') do |fp|
fp.each_line do |line|
mode, type, sha1, path = line.chomp.split(/\s+/)
case mode
when '100644' then File.chmod(0644, path)
when '100755' then File.chmod(0755, path)
end
end
end
end
# vim: syntax=Ruby
|