cargo: Recursively copy install fragments

This is useful on OS X in order to handle the .dSYM files.
This commit is contained in:
Erick Tryzelaar 2012-06-13 09:36:33 -07:00
parent dd17a98a09
commit 78daa1540c

View File

@ -1536,7 +1536,7 @@ fn cmd_search(c: cargo) {
fn install_to_dir(srcfile: str, destdir: str) {
let newfile = path::connect(destdir, path::basename(srcfile));
let status = run::run_program("cp", [srcfile, newfile]);
let status = run::run_program("cp", ["-r", srcfile, newfile]);
if status == 0 {
info(#fmt["installed: '%s'", newfile]);
} else {