Shuffling stuff around.
[fuzed.git] / Rakefile
blob53862811372d80878760ddb8c97bdd6b8588efd3
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.2.0']
15 end
17 ERLC_TEST_FLAGS = "-pa ebin/eunit -I include/eunit -DTEST"
18 ERLC_FLAGS = "+debug_info -W2 -I include -I include/yaws -o ebin"
20 task :default do
21   sh "erlc  #{ERLC_FLAGS} #{ERLC_TEST_FLAGS} elibs/*.erl"
22 end
24 desc 'Generate manifest from git files'
25 task :manifest do
26   sh 'git ls-tree --name-only -r HEAD > Manifest.txt'
27 end
29 desc "Upload site to Rubyforge"
30 task :site do
31   sh "scp -r site/* mojombo@god.rubyforge.org:/var/www/gforge-projects/fuzed"
32 end