kmk_cp --version (return code: 0)
kmk_cp - kBuild version 0.1.9998 (r2814)
kmk_cp --help (return code: 0)
usage: kmk_cp [options] src target
or: kmk_cp [options] src1 ... srcN directory
or: kmk_cp --help
or: kmk_cp --version
Options:
-R Recursive copy.
-H Follow symbolic links on the commandline. Only valid with -R.
-L Follow all symbolic links. Only valid with -R.
-P Do not follow symbolic links. Default. Only valid with -R
-f Force. Overrides -i and -n.
-i Iteractive. Overrides -n and -f.
-n Don't overwrite any files. Overrides -i and -f.
--ignore-non-existing
Don't fail if the specified source file doesn't exist.
--changed
Only copy if changed (i.e. compare first).
--disable-protection
Will disable the protection file protection applied with -R.
--enable-protection
Will enable the protection file protection applied with -R.
--enable-full-protection
Will enable the protection file protection for all operations.
--disable-full-protection
Will disable the protection file protection for all operations.
--protection-depth
Number or path indicating the file protection depth. Default: 2
Environment:
KMK_CP_DISABLE_PROTECTION
Same as --disable-protection. Overrides command line.
KMK_CP_ENABLE_PROTECTION
Same as --enable-protection. Overrides everyone else.
KMK_CP_ENABLE_FULL_PROTECTION
Same as --enable-full-protection. Overrides everyone else.
KMK_CP_DISABLE_FULL_PROTECTION
Same as --disable-full-protection. Overrides command line.
KMK_CP_PROTECTION_DEPTH
Same as --protection-depth. Overrides command line.
The file protection of the top 2 layers of the file hierarchy is there
to try prevent makefiles from doing bad things to your system. This
protection is not bulletproof, but should help prevent you from shooting
yourself in the foot.