Use sed to strip shebangs
This commit is contained in:
parent
b95c2d4fae
commit
6377a6ac57
@ -95,7 +95,7 @@ rm -rf runtests.py
|
||||
# Make rpmlint happy, rip out python shebang lines from most python
|
||||
# modules
|
||||
find netaddr -name "*.py" | \
|
||||
xargs %{__perl} -ni -e 'print unless /usr\/bin\/python|env\s+python/'
|
||||
xargs sed -i -e '1 {/^#!\//d}'
|
||||
|
||||
# Make rpmlint happy, fix permissions on documentation files
|
||||
chmod 0644 README.md AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE PKG-INFO
|
||||
|
Loading…
Reference in New Issue
Block a user