Sun Mar 11 15:07:45 2018 UTC ()
mk/configure/replace-interpreter.mk: document variables for show-all


(rillig)
diff -r1.14 -r1.15 pkgsrc/mk/configure/replace-interpreter.mk

cvs diff -r1.14 -r1.15 pkgsrc/mk/configure/replace-interpreter.mk (expand / switch to unified diff)

--- pkgsrc/mk/configure/replace-interpreter.mk 2018/03/11 14:59:14 1.14
+++ pkgsrc/mk/configure/replace-interpreter.mk 2018/03/11 15:07:45 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: replace-interpreter.mk,v 1.14 2018/03/11 14:59:14 rillig Exp $ 1# $NetBSD: replace-interpreter.mk,v 1.15 2018/03/11 15:07:45 rillig Exp $
2 2
3# This file provides common templates for replacing #! interpreters 3# This file provides common templates for replacing #! interpreters
4# in script files. 4# in script files.
5# 5#
6# The following variables may be set by a package: 6# The following variables may be set by a package:
7# 7#
8# REPLACE_AWK 8# REPLACE_AWK
9# REPLACE_BASH 9# REPLACE_BASH
10# REPLACE_CSH 10# REPLACE_CSH
11# REPLACE_KSH 11# REPLACE_KSH
12# REPLACE_PERL 12# REPLACE_PERL
13# REPLACE_SH 13# REPLACE_SH
14# Lists of files relative to WRKSRC in which the #! interpreter 14# Lists of files relative to WRKSRC in which the #! interpreter
@@ -108,13 +108,22 @@ replace-interpreter: @@ -108,13 +108,22 @@ replace-interpreter:
108 ${CHMOD} a+x "$${f}.new"; \ 108 ${CHMOD} a+x "$${f}.new"; \
109 fi; \ 109 fi; \
110 ${MV} -f "$${f}.new" "$${f}"; \ 110 ${MV} -f "$${f}.new" "$${f}"; \
111 elif [ -d "$$f" ]; then \ 111 elif [ -d "$$f" ]; then \
112 ${SHCOMMENT} "Ignore it, most probably comes from shell globs"; \ 112 ${SHCOMMENT} "Ignore it, most probably comes from shell globs"; \
113 else \ 113 else \
114 ${WARNING_MSG} "[replace-interpreter] Skipping non-existent file \"$$f\"."; \ 114 ${WARNING_MSG} "[replace-interpreter] Skipping non-existent file \"$$f\"."; \
115 fi; \ 115 fi; \
116 done 116 done
117. else 117. else
118 @${WARNING_MSG} "[replace-interpreter] Empty list of files for ${_lang_}." 118 @${WARNING_MSG} "[replace-interpreter] Empty list of files for ${_lang_}."
119. endif 119. endif
120.endfor 120.endfor
 121
 122_VARGROUPS+= interp
 123.for varname in REPLACE_AWK REPLACE_BASH REPLACE_CSH REPLACE_KSH REPLACE_PERL REPLACE_SH
 124_PKG_VARS.interp+= ${varname}
 125.endfor
 126_PKG_VARS.interp+= REPLACE_INTERPRETER
 127.for interp in ${REPLACE_INTERPRETER}
 128_DEF_VARS.interp+= REPLACE.${interp}.old REPLACE.${interp}.new REPLACE_FILES.${interp}
 129.endfor