stevedonovan / Lake

A Lua-based Build Tool
MIT License
132 stars 16 forks source link

recurcive file.group #11

Closed moteus closed 11 years ago

moteus commented 12 years ago

recurcive copy does not create directory tree

  file.group{odir=J(INSTALL_DIR, 'test' ); recurse=true; src = J('test', '*.*') };

produce: copy test\ex\test.lua lib\test\test.lua > nul copy test\luasql\odbc.lua lib\test\odbc.lua > nul copy test\testdb.sql lib\test\testdb.sql > nul

stevedonovan commented 12 years ago

Yes, good point. The recurse option was originally for selecting source files, but I will see if we can make file.group behave in the way you want.

andrewstarks commented 11 years ago

++ on this one. Having a way to map/copy a tree would be excellent, ala xcopy.

stevedonovan commented 11 years ago

OK, let's do it, in a platform-aware way. (For Windows xcopy does fine, cp -r works fine on Linux, not sure about OS X)

stevedonovan commented 11 years ago

Looks like its cp -R

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/cp.1.html

If you compare this BSD cp to the Linux cp you'll see they're rather different beasts!

moteus commented 11 years ago

It is already work. Should we close this issuse

stevedonovan commented 11 years ago

Alexey, I had forgotten that I'd fixed this issue ;) file.group should be the way to do it, although perhaps I'll provide a file.copy_tree to do wholesale copies directly.

moteus commented 11 years ago

Copy files without extension still do not work :( Do i need open new issuae?