It is a list of NAME, ID, which is processed by a script which checks the Name with the online-name-to-the-id and then downloads the file. It should be possible to allow those kind of dynamic outputs. Think of uncompressing a compressed file...
Am Mittwoch, 13. August 2014 15:17:57 UTC+2 schrieb Freddie Chopin: > > W dniu 2014-08-13 14:38, Rico Beier pisze: > > Hi there, > > > > I would like to implement a command which has a file list as input and > > downloads all files on the list to a specific subdirectory. The problem > > is, that tup needs an accurate specification of output files. So I don't > > know how to perform the download task. > > > > Something like GLOB-Usage on output list would be great; or a possible > > ^-Flag that allows all automatically detected outputs without > > specification... > > > > Please help me... > > If I understand you right and you have that "list" as a file with > strings (each string represents an "input" for a rule you wish to > execute), I guess it can be done in lua parser. Take a look at this test: > > https://github.com/gittup/tup/blob/master/test/t2159-lua-open-file2.sh > > Otherwise, if you know the files in advance (so they are listed in the > Tupfile etc.) you can just use "foreach" rules and use various "%" > replacements to have the output name taken from the input. > > Regards, > FCh > > -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
