cargo: Recursively copy install fragments
This is useful on OS X in order to handle the .dSYM files.
This commit is contained in:
parent
dd17a98a09
commit
78daa1540c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user