aboutsummaryrefslogtreecommitdiff
path: root/share/mk/meta.stage.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2016-03-18 20:03:09 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2016-03-18 20:03:09 +0000
commit3bebe7293bdcec4fe234f552e4223e07f34c4613 (patch)
tree441a6072996940eb112c1cbfdd9f818d1781c000 /share/mk/meta.stage.mk
parent4a5202f9c4e3a2e810b5ac5f87f87518ff56c6a5 (diff)
parentb7ff84ad756783ecadb3ce2c732c71c4c7d8e1f7 (diff)
downloadsrc-3bebe7293bdcec4fe234f552e4223e07f34c4613.tar.gz
src-3bebe7293bdcec4fe234f552e4223e07f34c4613.zip
Notes
Diffstat (limited to 'share/mk/meta.stage.mk')
-rw-r--r--share/mk/meta.stage.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/meta.stage.mk b/share/mk/meta.stage.mk
index e31582837359..0baddba1dc7b 100644
--- a/share/mk/meta.stage.mk
+++ b/share/mk/meta.stage.mk
@@ -1,5 +1,5 @@
# $FreeBSD$
-# $Id: meta.stage.mk,v 1.43 2016/02/24 18:46:32 sjg Exp $
+# $Id: meta.stage.mk,v 1.44 2016/03/16 18:21:23 sjg Exp $
#
# @(#) Copyright (c) 2011, Simon J. Gerraty
#
@@ -59,7 +59,7 @@ GENDIRDEPS_FILTER += Nnot-empty-is-important \
LN_CP_SCRIPT = LnCp() { \
rm -f $$2 2> /dev/null; \
- ln $$1 $$2 2> /dev/null || \
+ { [ -z "$$mode" ] && ln $$1 $$2 2> /dev/null; } || \
cp -p $$1 $$2; }
# a staging conflict should cause an error