diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-16 11:30:03 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-17 06:23:40 +0530 |
| commit | e337a5728a3bedbae542c0c71e1c4185c75be21b (patch) | |
| tree | 76c63db74dcaaaed984585cc0728641ff9b72421 | |
| parent | 8a6b72400929e02b7a92de481e76f767e484d304 (diff) | |
| parent | 1c935f197a38fdf03b2535e1bdf9886e3d52933c (diff) | |
| download | rust-e337a5728a3bedbae542c0c71e1c4185c75be21b.tar.gz rust-e337a5728a3bedbae542c0c71e1c4185c75be21b.zip | |
Rollup merge of #22326 - semarie:compat-cp, r=alexcrichton
`cp -a` is a GNU extension. Use an alternate combinaison of POSIX options (`-PRp`) that do nearly the same. The difference is `-a` will preserve context, links and xattr attributes, whereas `-p` not. But as we use it only for copy a file, there is no difference in the current context.
| -rw-r--r-- | mk/docs.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/docs.mk b/mk/docs.mk index 4c2c1243c65..799871e2bd5 100644 --- a/mk/docs.mk +++ b/mk/docs.mk @@ -129,21 +129,21 @@ doc/: HTML_DEPS += doc/rust.css doc/rust.css: $(D)/rust.css | doc/ @$(call E, cp: $@) - $(Q)cp -a $< $@ 2> /dev/null + $(Q)cp -PRp $< $@ 2> /dev/null HTML_DEPS += doc/favicon.inc doc/favicon.inc: $(D)/favicon.inc | doc/ @$(call E, cp: $@) - $(Q)cp -a $< $@ 2> /dev/null + $(Q)cp -PRp $< $@ 2> /dev/null doc/full-toc.inc: $(D)/full-toc.inc | doc/ @$(call E, cp: $@) - $(Q)cp -a $< $@ 2> /dev/null + $(Q)cp -PRp $< $@ 2> /dev/null HTML_DEPS += doc/footer.inc doc/footer.inc: $(D)/footer.inc | doc/ @$(call E, cp: $@) - $(Q)cp -a $< $@ 2> /dev/null + $(Q)cp -PRp $< $@ 2> /dev/null # The (english) documentation for each doc item. |
