| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: subst.mk,v 1.99 2020/06/11 20:13:22 rillig Exp $ | | 1 | # $NetBSD: subst.mk,v 1.100 2020/06/16 18:13:54 rillig Exp $ |
2 | # | | 2 | # |
3 | # The subst framework replaces text in one or more files in the WRKSRC | | 3 | # The subst framework replaces text in one or more files in the WRKSRC |
4 | # directory. Packages can define several ``classes'' of replacements. | | 4 | # directory. Packages can define several ``classes'' of replacements. |
5 | # Each such class defines: | | 5 | # Each such class defines: |
6 | # | | 6 | # |
7 | # - in which stage of the build process the replacement happens | | 7 | # - in which stage of the build process the replacement happens |
8 | # - which files are affected by the replacement | | 8 | # - which files are affected by the replacement |
9 | # - which text or pattern is replaced by which replacement text | | 9 | # - which text or pattern is replaced by which replacement text |
10 | # | | 10 | # |
11 | # A typical example is: | | 11 | # A typical example is: |
12 | # | | 12 | # |
13 | # SUBST_CLASSES+= prefix | | 13 | # SUBST_CLASSES+= prefix |
14 | # SUBST_STAGE.prefix= pre-configure | | 14 | # SUBST_STAGE.prefix= pre-configure |
| @@ -100,27 +100,27 @@ | | | @@ -100,27 +100,27 @@ |
100 | # may include unaffected files. | | 100 | # may include unaffected files. |
101 | # | | 101 | # |
102 | # 2. There are multiple SUBST_SED patterns, and some of these | | 102 | # 2. There are multiple SUBST_SED patterns, and some of these |
103 | # do not count as identity substitution since they contain | | 103 | # do not count as identity substitution since they contain |
104 | # ".*" or similar parts. | | 104 | # ".*" or similar parts. |
105 | # | | 105 | # |
106 | # See also: | | 106 | # See also: |
107 | # PLIST_SUBST | | 107 | # PLIST_SUBST |
108 | # | | 108 | # |
109 | # Keywords: subst | | 109 | # Keywords: subst |
110 | # | | 110 | # |
111 | | | 111 | |
112 | SUBST_SHOW_DIFF?= no | | 112 | SUBST_SHOW_DIFF?= no |
113 | SUBST_NOOP_OK?= no # since May 2020 | | 113 | SUBST_NOOP_OK?= yes # for the stable branch 2020Q2 |
114 | | | 114 | |
115 | _VARGROUPS+= subst | | 115 | _VARGROUPS+= subst |
116 | _USER_VARS.subst= SUBST_SHOW_DIFF SUBST_NOOP_OK | | 116 | _USER_VARS.subst= SUBST_SHOW_DIFF SUBST_NOOP_OK |
117 | _PKG_VARS.subst= SUBST_CLASSES | | 117 | _PKG_VARS.subst= SUBST_CLASSES |
118 | .for c in ${SUBST_CLASSES} | | 118 | .for c in ${SUBST_CLASSES} |
119 | . for pv in SUBST_STAGE SUBST_MESSAGE SUBST_FILES SUBST_SED SUBST_VARS \ | | 119 | . for pv in SUBST_STAGE SUBST_MESSAGE SUBST_FILES SUBST_SED SUBST_VARS \ |
120 | SUBST_FILTER_CMD SUBST_SKIP_TEXT_CHECK SUBST_NOOP_OK | | 120 | SUBST_FILTER_CMD SUBST_SKIP_TEXT_CHECK SUBST_NOOP_OK |
121 | _PKG_VARS.subst+= ${pv}.${c} | | 121 | _PKG_VARS.subst+= ${pv}.${c} |
122 | . endfor | | 122 | . endfor |
123 | .endfor | | 123 | .endfor |
124 | _DEF_VARS.subst= ECHO_SUBST_MSG | | 124 | _DEF_VARS.subst= ECHO_SUBST_MSG |
125 | _USE_VARS.subst= WRKDIR WRKSRC | | 125 | _USE_VARS.subst= WRKDIR WRKSRC |
126 | _IGN_VARS.subst= _SUBST_IS_TEXT_FILE_CMD | | 126 | _IGN_VARS.subst= _SUBST_IS_TEXT_FILE_CMD |