Skip to content

Commit

Permalink
pas de doubles patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Lecarme authored and Mathieu Lecarme committed Apr 27, 2009
1 parent d5e68c5 commit ebd2d11
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ namespace :clamav do
end

task :patch => source do
Dir.chdir "#{source}/freshclam" do
%w{freshclam manager}.each do |f|
mv "#{f}.c", "#{f}.m" if File.exist? "#{f}.c"
if not File.exist? "#{source}/freshclam/freshclam.m"
Dir.chdir "#{source}/freshclam" do
%w{freshclam manager}.each do |f|
mv "#{f}.c", "#{f}.m" if File.exist? "#{f}.c"
end
end
Dir.chdir source do
sh "patch -p0 -N -i ../patches/freshclam.patch"
end
end
Dir.chdir source do
sh "patch -p0 -N -i ../patches/freshclam.patch"
end
end

Expand Down

0 comments on commit ebd2d11

Please sign in to comment.