summaryrefslogtreecommitdiff
path: root/mk/internal/locking.mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-02-22 07:20:41 +0000
committerrillig <rillig>2007-02-22 07:20:41 +0000
commit4a353f714357a034630bf54531239c1bd2664f1e (patch)
treea346a656fde89be0bdcf1478a64d7711899f6ac0 /mk/internal/locking.mk
parent39b45be91550a85bfa135b98c693d03b5eecbf04 (diff)
downloadpkgsrc-4a353f714357a034630bf54531239c1bd2664f1e.tar.gz
Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE and
WRKDIR_LOCKTYPE. Added more documentation.
Diffstat (limited to 'mk/internal/locking.mk')
-rw-r--r--mk/internal/locking.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/internal/locking.mk b/mk/internal/locking.mk
index dff0abe4b4d..6ee759fc5e3 100644
--- a/mk/internal/locking.mk
+++ b/mk/internal/locking.mk
@@ -1,4 +1,4 @@
-# $NetBSD: locking.mk,v 1.6 2007/02/20 22:11:10 rillig Exp $
+# $NetBSD: locking.mk,v 1.7 2007/02/22 07:20:42 rillig Exp $
#
# User-settable variables:
#
@@ -16,6 +16,9 @@
# Default value: none
# Recommended: sleep
#
+# See also: PKGSRC_LOCKTYPE.
+#
+
# This file provides the following .USE targets:
#
# acquire-lock
@@ -45,7 +48,7 @@ _LOCKVARS= WRKDIR_LOCKTYPE LOCALBASE_LOCKTYPE
.for v in ${_LOCKVARS}
_OK= no
. for t in none once sleep
-. if ${PKGSRC_LOCKTYPE} == "${t}"
+. if ${${v}} == "${t}"
_OK= yes
. endif
. endfor