3 load "./GIT-VERSION-GEN"
5 include Rake::DSL if defined?(Rake::DSL)
10 manifest = "Manifest.txt"
11 if ! File.exist?(manifest) ||
12 File.stat(manifest).mtime < File.stat(RVF).mtime
13 system("git ls-files > #{manifest}")
14 File.open(manifest, "a") { |fp| fp.puts("lib/mogilefs/version.rb") }
17 Hoe.spec 'mogilefs-client' do
18 self.rubyforge_name = 'seattlerb'
19 developer 'Eric Wong', 'normalperson@yhbt.net'
20 # developer 'drbrain@segment7.net', 'Eric Hodel'
21 self.readme_file = "README"
22 self.history_file = "History"
23 self.url = "http://bogomips.org/mogilefs-client"
24 self.description = self.paragraphs_of("README", 1)
25 self.summary = "MogileFS client library for Ruby"
29 IO.popen('git ls-tree -r HEAD^0') do |fp|
30 fp.each_line do |line|
31 mode, type, sha1, path = line.chomp.split(/\s+/)
33 when '100644' then File.chmod(0644, path)
34 when '100755' then File.chmod(0755, path)