[perl-Coro] Convert JIT scripts to libraries

Petr Pisar ppisar at fedoraproject.org
Fri Jul 29 08:54:41 UTC 2011


commit 11fca9d50236917708eff847d2d7f416d6beac9f
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Jul 29 10:53:53 2011 +0200

    Convert JIT scripts to libraries

 perl-Coro.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/perl-Coro.spec b/perl-Coro.spec
index 2a3b950..2a76667 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -64,7 +64,12 @@ programming much safer and easier than using other thread models.
 %patch0 -p1 -b .ucontext-default
 %endif
 
-%global wrong_shbangs eg/myhttpd Coro/jit-*.pl
+for F in Coro/jit-*.pl; do
+    sed -i -e '/^#!/d' "$F"
+    chmod -x "$F"
+done
+
+%global wrong_shbangs eg/myhttpd
 %if 0%{?fix_shbang_line}
 %fix_shbang_line %wrong_shbangs
 %else
@@ -72,8 +77,6 @@ programming much safer and easier than using other thread models.
 sed -i -e '/^#!/ s|.*|#!%{__perl}|' %wrong_shbangs
 %endif
 
-chmod -x Coro/jit-*.pl
-
 
 %build
 # Interractive configuration. Use default values.


More information about the scm-commits mailing list