[packages/kernel] just be more precise when updating shebangs
atler
atler at pld-linux.org
Tue Dec 15 00:41:45 CET 2020
commit cd112dcb21ac909d508789e56cef128186814125
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Dec 15 00:39:13 2020 +0100
just be more precise when updating shebangs
kernel.spec | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 6a7402da..486cee1e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -725,13 +725,13 @@ sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{?alt_kernel:.%{alt_kernel}}#g' Makef
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
find -name '*.py' -print0 | \
- xargs -0 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
- -e '1s,/usr/bin/env python,%{__python},' \
- -e '1s,/usr/bin/env python3,%{__python3},'
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
+ -e '1s,/usr/bin/env python$,%{__python},' \
+ -e '1s,/usr/bin/env python3$,%{__python3},'
-%{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
- -e '1s,/usr/bin/env python,%{__python},' \
- -e '1s,/usr/bin/env python3,%{__python3},' \
+%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
+ -e '1s,/usr/bin/env python$,%{__python},' \
+ -e '1s,/usr/bin/env python3$,%{__python3},' \
drivers/staging/greybus/tools/lbtest \
scripts/bloat-o-meter \
scripts/diffconfig \
@@ -741,10 +741,6 @@ find -name '*.py' -print0 | \
tools/kvm/kvm_stat/kvm_stat \
tools/testing/selftests/exec/binfmt_script
-%{__sed} -i -e '1s,/usr/bin/python23,%{__python3},' \
- scripts/bpf_helpers_doc.py \
- scripts/checkkconfigsymbols.py
-
find -name '*.pl' -print0 | \
xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/cd112dcb21ac909d508789e56cef128186814125
More information about the pld-cvs-commit
mailing list