[ruby/ruby-2.0] Escape example command in tapset comment.
Vít Ondruch
vondruch at fedoraproject.org
Tue Jan 8 12:11:16 UTC 2013
commit 19c6a9831cfb8169ad6835ea11836b5efeec1244
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Jan 8 11:59:38 2013 +0100
Escape example command in tapset comment.
ruby.spec | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index af0eba9..5b532dc 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -501,6 +501,8 @@ sed -i '/^end$/ i\
mkdir -p %{buildroot}%{tapset_dir}
sed -e "s|@LIBRARY_PATH@|%{tapset_libdir}/libruby.so.%{ruby_version}|" \
%{SOURCE2} > %{buildroot}%{tapset_dir}/libruby.so.%{ruby_version}.stp
+# Escape '*/' in comment.
+sed -r "s|( \*.*\*)\/(.*)|\1\\\/\2|" %{buildroot}%{tapset_dir}/libruby.so.%{ruby_version}.stp
%check
DISABLE_TESTS=""
More information about the scm-commits
mailing list