Skip to content

Commit

Permalink
+ rake prepare to copy license and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Sep 4, 2010
1 parent 3336c33 commit 1b54d14
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rakefile.rb
Expand Up @@ -10,6 +10,13 @@

task :full => [:build_release]

desc "Prepare build"
task :prepare do
mkdir OUTPUT_PATH unless File.exists?(OUTPUT_PATH)
cp "LICENSE.txt", OUTPUT_PATH
cp "README.md" , OUTPUT_PATH
end

desc "Clean build outputs"
task :clean => [:clean_msbuild] do
FileUtils.rm_rf OUTPUT_PATH
Expand All @@ -22,8 +29,8 @@
msb.targets :Clean
end

desc "Build solution"
msbuild :build_release => [:clean] do |msb|
desc "Build solution (default)"
msbuild :build_release => [:clean,:prepare] do |msb|
msb.properties :configuration => :Release
msb.solution = SRC_PATH + "FacebookSharp.sln"
msb.targets :Build
Expand Down

0 comments on commit 1b54d14

Please sign in to comment.