about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-16 11:30:03 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-17 06:23:40 +0530
commite337a5728a3bedbae542c0c71e1c4185c75be21b (patch)
tree76c63db74dcaaaed984585cc0728641ff9b72421
parent8a6b72400929e02b7a92de481e76f767e484d304 (diff)
parent1c935f197a38fdf03b2535e1bdf9886e3d52933c (diff)
downloadrust-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.mk8
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.