pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/pkgtasks mk/pkgtasks: Make the assertion comments m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b5d7fdf0426
branches:  trunk
changeset: 366285:9b5d7fdf0426
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Aug 10 05:37:44 2017 +0000

description:
mk/pkgtasks: Make the assertion comments more obvious.

diffstat:

 mk/pkgtasks/directories.mk |   6 +++---
 mk/pkgtasks/files.mk       |  12 ++++++------
 mk/pkgtasks/permissions.mk |   4 ++--
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (71 lines):

diff -r 85913866373b -r 9b5d7fdf0426 mk/pkgtasks/directories.mk
--- a/mk/pkgtasks/directories.mk        Thu Aug 10 05:37:32 2017 +0000
+++ b/mk/pkgtasks/directories.mk        Thu Aug 10 05:37:44 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: directories.mk,v 1.2 2017/08/10 05:37:32 jlam Exp $
+# $NetBSD: directories.mk,v 1.3 2017/08/10 05:37:44 jlam Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -95,8 +95,8 @@
 _REQD_DIRS=            ${REQD_DIRS:S|^${PREFIX}/||g}
 _REQD_DIRS_PERMS=      ${REQD_DIRS_PERMS:S|^${PREFIX}/||g}
 
-# Assert that the variables have the right number of words and
-# that no directory is listed in more than one variable.
+# ASSERT: The variables have the right number of words and that no
+#      directory is listed in more than one variable.
 #
 # _ALL_DIRS.directories
 #      List of directories named in MAKE_DIRS, OWN_DIRS, REQD_DIRS,
diff -r 85913866373b -r 9b5d7fdf0426 mk/pkgtasks/files.mk
--- a/mk/pkgtasks/files.mk      Thu Aug 10 05:37:32 2017 +0000
+++ b/mk/pkgtasks/files.mk      Thu Aug 10 05:37:44 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.mk,v 1.5 2017/08/10 05:37:32 jlam Exp $
+# $NetBSD: files.mk,v 1.6 2017/08/10 05:37:44 jlam Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -107,8 +107,8 @@
 __INIT_SCRIPTS=                ${_INIT_SCRIPTS:S|^${PREFIX}/||g}
 __INIT_SCRIPTS_PERMS=  ${_INIT_SCRIPTS_PERMS:S|^${PREFIX}/||g}
 
-# Assert that the variables have the right number of words and
-# that no target file is listed in more than one variable.
+# ASSERT: The variables have the right number of words and that
+#      no target file is listed in more than one variable.
 #
 _ALL_TARGET_FILES.files=       # empty
 .for _var_ in CONF_FILES REQD_FILES _INIT_SCRIPTS
@@ -158,9 +158,9 @@
 _ALL_DIRS.directories+=        ${PKG_SYSCONFDIR}
 .endif
 
-# Assert that the directories that contain target files are listed in
-# one of the directory variables.  This makes use of
-# ${_ALL_DIRS.directories}, which is defined in directories.mk.
+# ASSERT: The directories that contain target files are listed in
+#      one of the directory variables.  This makes use of
+#      ${_ALL_DIRS.directories}, which is defined in directories.mk.
 #
 .for t in ${_ALL_TARGET_FILES.files:O:u}
 _FILEMATCH.${t}=       ${_ALL_DIRS.directories:@d@${t:M${d}/*}@}
diff -r 85913866373b -r 9b5d7fdf0426 mk/pkgtasks/permissions.mk
--- a/mk/pkgtasks/permissions.mk        Thu Aug 10 05:37:32 2017 +0000
+++ b/mk/pkgtasks/permissions.mk        Thu Aug 10 05:37:44 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: permissions.mk,v 1.1 2017/06/01 02:06:04 jlam Exp $
+# $NetBSD: permissions.mk,v 1.2 2017/08/10 05:37:44 jlam Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -88,7 +88,7 @@
 GAMEDATA_PERMS?=       ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
 GAMEDIR_PERMS?=                ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
 
-# Assert that the variables have the right number of words.
+# ASSERT: The variables have the right number of words.
 .for _var_ in SPECIAL_PERMS
 .  if empty(${_var_}) || empty(${_var_}:C/.*/4/:M*:S/4 4 4 4//gW)
 # ${_var_} has a multiple of 4 words.



Home | Main Index | Thread Index | Old Index