Rakefile: Fixed broken copy in install_app
commit41154efa150809c80ead8a88a30affe8676eca02
authorMartin Svangren <martin@masv.net>
Mon, 1 Dec 2008 22:40:19 +0000 (1 23:40 +0100)
committerPieter de Bie <pdebie@ai.rug.nl>
Mon, 1 Dec 2008 23:04:40 +0000 (2 00:04 +0100)
treeb5aff826fef0b85cb7c8766ff5650e287497db1f
parent0852f6326cebafe96bc06318fe67839f38b12093
Rakefile: Fixed broken copy in install_app

Seems like File.copy doesn't do directories (as source, that is),
only files (as far as I can tell from reading the docs and trying
it in irb, punch me if I'm wrong). It only creates a zero byte file
in the target directory on my system.

Replaced File.copy with a system call to 'cp -R ...' to do the job.
Seems like FileUtils could have done it just as well (with cp_r),
but I figured making a system call was better than introducing a
new dependency.
Rakefile