[Rake-devel] List of Files as prerequisits

Emanuel Indermühle e.i at bluewin.ch
Thu Aug 2 02:53:35 EDT 2007


Hi zimbatm

Thanks for your answer. 
I did it this way, and it worked very well.

best regards emanuel


Am Dienstag, den 31.07.2007, 16:51 +0200 schrieb Jonas Pfenniger:
> 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
> Rake-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rake-devel



More information about the Rake-devel mailing list