FreeBSD Bugzilla – Attachment 169692 Details for
Bug 209051
[exp-run] [patch] remove RUBY_SHEBANG_FILES
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
RUBY_SHEBANG_FILES removal patch
ruby_shebang_files_removal.diff (text/plain), 1.44 KB, created by
Steve Wills
on 2016-04-25 18:35:03 UTC
(
hide
)
Description:
RUBY_SHEBANG_FILES removal patch
Filename:
MIME Type:
Creator:
Steve Wills
Created:
2016-04-25 18:35:03 UTC
Size:
1.44 KB
patch
obsolete
>Index: Mk/bsd.ruby.mk >=================================================================== >--- Mk/bsd.ruby.mk (revision 413914) >+++ Mk/bsd.ruby.mk (working copy) >@@ -52,7 +52,6 @@ > # expression will be set to RUBY_PROVIDED, which is > # left undefined if the result is nil, false or a > # zero-length string. Implies USE_RUBY. >-# RUBY_SHEBANG_FILES - Specify the files which shebang lines you want to fix. > # RUBY_RD_FILES - Specify the RD files which you want to generate HTML > # documents from. If this is defined and not empty, > # USE_RUBY_RDTOOL is implied and RUBY_RD_HTML_FILES is >@@ -388,37 +387,6 @@ > .endif > .endif > >-# fix shebang lines >-.if defined(RUBY_SHEBANG_FILES) && !empty(RUBY_SHEBANG_FILES) >-USE_RUBY= yes >- >-post-patch: ruby-shebang-patch >- >-ruby-shebang-patch: >- @cd ${WRKSRC}; for f in ${RUBY_SHEBANG_FILES}; do \ >- ${ECHO_MSG} "===> Fixing the #! line of $$f"; \ >- TMPFILE=`mktemp -t rubyshebang`; \ >- cp $$f $$TMPFILE; \ >- ${AWK} 'BEGIN {flag = 0;} \ >- { \ >- if (flag == 0) { \ >- if ($$0 ~ /^#!/) { \ >- sub(/#!(.*\/)?(env[[:space:]]+)?ruby/, "#!${RUBY}", $$0);\ >- print $$0; \ >- } \ >- else { \ >- print "#!${RUBY}"; \ >- print $$0; \ >- } \ >- flag = 1; \ >- } else { \ >- print $$0; \ >- } \ >- }' $$TMPFILE > $$f; \ >- rm -f $$TMPFILE; \ >- done >-.endif >- > .if ${PORT_OPTIONS:MDEBUG} > RUBY_FLAGS+= -d > .endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209051
: 169692