[Rake-devel] List of Files as prerequisits
Jonas Pfenniger
zimbatm at oree.ch
Tue Jul 31 10:51:31 EDT 2007
Hi Emanuel,
your problem (I think) is that you are relying on the execution order of
your task's dependencies. Here is a snippet that should work :
file "letter.txt" do
#generate "letter.txt" somehow
end
task :ensure_hmms => "letter.txt" do
(File.read('letter.txt').split("\n") - FileList['*.hmm']).each do
|missing_hmm|
sh :touch, missing_hmm
end
end
task :combineFiles=>:ensure_hmms do
#do something with the files
end
--
Cheers,
zimbatm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rake-devel/attachments/20070731/de7647ec/attachment.html
More information about the Rake-devel
mailing list