[ruby] Escape example command in tapset comment.

Vít Ondruch vondruch at fedoraproject.org
Fri Feb 22 14:23:42 UTC 2013


commit 924ee344ab87713c6ccb71fced6ce5417fe9e89f
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 e2d77c3..767ad62 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -534,6 +534,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