- shebangfix: allow to use SHEBANG_REGEX, SHEBANG_GLOB, and SHEBANG_FILES simultaneously
Reported by: lev Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D11572
This commit is contained in:
parent
fe7dc24bc0
commit
c8de8164ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445751
1 changed files with 6 additions and 4 deletions
|
@ -84,13 +84,15 @@ fix-shebang:
|
|||
@cd ${WRKSRC}; \
|
||||
${FIND} -E . -type f -iregex '${SHEBANG_REGEX}' \
|
||||
-exec ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS} {} +
|
||||
.elif defined(SHEBANG_GLOB)
|
||||
.for f in ${SHEBANG_GLOB}
|
||||
.endif
|
||||
.if defined(SHEBANG_GLOB)
|
||||
. for f in ${SHEBANG_GLOB}
|
||||
@cd ${WRKSRC}; \
|
||||
${FIND} . -type f -name '${f}' \
|
||||
-exec ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS} {} +
|
||||
.endfor
|
||||
.else
|
||||
. endfor
|
||||
.endif
|
||||
.if defined(SHEBANG_FILES)
|
||||
@cd ${WRKSRC}; \
|
||||
${ECHO_CMD} ${SHEBANG_FILES} | ${XARGS} ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS}
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue