[packages/python-PyQt5] fix shebangs in examples

atler atler at pld-linux.org
Thu Dec 26 22:34:59 CET 2019


commit 565e27797a541ced900495a57f86f582607f3f51
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Dec 26 22:34:13 2019 +0100

    fix shebangs in examples

 python-PyQt5.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/python-PyQt5.spec b/python-PyQt5.spec
index 3c5db7a..8283a3e 100644
--- a/python-PyQt5.spec
+++ b/python-PyQt5.spec
@@ -242,6 +242,10 @@ kodu wykorzystującego PyQt5.
 %setup -q -n PyQt5-%{version}
 %patch0 -p1
 
+grep -rl /usr/bin/env examples | xargs sed -i -e '1{
+	s,^#!.*bin/env python$,#!%{__python},
+}'
+
 %build
 %if %{with python2}
 install -d build-py2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyQt5.git/commitdiff/565e27797a541ced900495a57f86f582607f3f51



More information about the pld-cvs-commit mailing list