|
|
@ -5,14 +5,14 @@ |
|
|
|
if (`cp --version 2>/dev/null` =~ m/GNU/) { |
|
|
|
# It's GNU Cp -- we have options galore, and they're readable. |
|
|
|
- $cpCommand = "cp --recursive --preserve --no-dereference";
|
|
|
|
+ $cpCommand = "cp --preserve";
|
|
|
|
+ $cpCommand = "cp --preserve --no-dereference";
|
|
|
|
} else { |
|
|
|
# This works on Cp from "4th Berkeley Distribution", July 1994. |
|
|
|
# Mac OSX has this. |
|
|
|
- # -R means recursive with no dereferencing of symlinks
|
|
|
|
# -p means preserve attributes |
|
|
|
- $cpCommand = "cp -R -p";
|
|
|
|
+ $cpCommand = "cp -p";
|
|
|
|
+ $cpCommand = "cp -p -d";
|
|
|
|
} |
|
|
|
return($cpCommand); |
|
|
|
} |
|
|
|