Also fix shebangs with spaces
pyproto/google/protobuf/internal/_parameterized.py has this shebang: #! /usr/bin/env python That was not covered by the sed and ended up with brp-mangle-shebang warnings (soon to be errors).
This commit is contained in:
parent
0fc6cb9e41
commit
a913b5cdd2
@ -814,10 +814,9 @@ udev.
|
|||||||
%patch111 -p1 -b .wvhack
|
%patch111 -p1 -b .wvhack
|
||||||
%patch112 -p1 -b .sanebuild
|
%patch112 -p1 -b .sanebuild
|
||||||
|
|
||||||
|
|
||||||
# Change shebang in all relevant files in this directory and all subdirectories
|
# Change shebang in all relevant files in this directory and all subdirectories
|
||||||
# See `man find` for how the `-exec command {} +` syntax works
|
# See `man find` for how the `-exec command {} +` syntax works
|
||||||
find -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} +
|
find -type f -exec sed -iE '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} +
|
||||||
|
|
||||||
%if 0%{?asan}
|
%if 0%{?asan}
|
||||||
export CC="clang"
|
export CC="clang"
|
||||||
|
Loading…
Reference in New Issue
Block a user