fix bignum decoding in erlectricity
[fuzed.git] / Rakefile
blobd5f95756f129ae6d8a96a0b8ebfd86b48e4a944c
1 require 'rubygems'
2 require 'hoe'
3 require './lib/fuzed.rb'
5 Hoe.new('fuzed', Fuzed::VERSION) do |p|
6   p.rubyforge_name = 'fuzed'
7   p.author = ['Dave Fayram', 'Tom Preston-Werner']
8   p.email = ['tom@rubyisawesome.com']
9   p.summary = 'Leverage the YAWS webserver (and additional erlang-based infrastructure) to run Rails.'
10   p.url = 'fuzed.rubyforge.org'
11   # p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
12   # p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
13   p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
14   p.extra_deps << ['erlectricity', '>= 0.1.0']
15 end
17 task :build do
18   Dir['./**/*.erl'].each do |source|
19     unless File.open(source).read =~ /#!/
20       puts "compiling #{source}"
21       Dir.chdir(File.dirname(source)) do |dir|
22         puts `erlc #{File.basename(source)}`
23       end
24     end
25   end
26 end
28 desc 'Generate manifest from git files'
29 task :manifest do
30   sh 'git ls-tree --name-only -r HEAD > Manifest.txt'
31 end
33 desc "Upload site to Rubyforge"
34 task :site do
35   sh "scp -r site/* mojombo@god.rubyforge.org:/var/www/gforge-projects/fuzed"
36 end