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
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel