diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-07-14 12:47:55 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-07-14 12:47:55 +0000 |
commit | c8de8164cad00f45461b3ca801dcad4bd56b993e (patch) | |
tree | 9800c38386f3e893d8b922d7ee5bad688d237001 | |
parent | fe7dc24bc06fd981e32d7510bb661f2702cd698e (diff) | |
download | ports-c8de8164cad00f45461b3ca801dcad4bd56b993e.tar.gz ports-c8de8164cad00f45461b3ca801dcad4bd56b993e.zip |
Notes
-rw-r--r-- | Mk/Uses/shebangfix.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk index 6ae6d8d0e96e..c2543e72af90 100644 --- a/Mk/Uses/shebangfix.mk +++ b/Mk/Uses/shebangfix.mk @@ -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 |