[packages/python3-simpletal] - fix shebangs in examples

baggins baggins at pld-linux.org
Mon Mar 1 21:25:08 CET 2021


commit d0ee10914ec260e21b771a07bd690c5ea1f3952d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 1 21:24:48 2021 +0100

    - fix shebangs in examples

 python3-simpletal.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/python3-simpletal.spec b/python3-simpletal.spec
index df66f22..fa3db28 100644
--- a/python3-simpletal.spec
+++ b/python3-simpletal.spec
@@ -44,6 +44,12 @@ Pliki przykładów dla SimpleTAL.
 %prep
 %setup -q -n %{fname}-%{version}
 
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
+      examples/basic/basic-example.py \
+      examples/cgi-example/simple-cgi.py \
+      examples/elementtree-example/basic-example.py \
+      examples/metal-example/metal-example.py
+
 %build
 %py3_build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-simpletal.git/commitdiff/d0ee10914ec260e21b771a07bd690c5ea1f3952d



More information about the pld-cvs-commit mailing list