Use sed to strip shebangs

This commit is contained in:
Orion Poplawski 2016-11-10 13:51:01 -07:00
parent b95c2d4fae
commit 6377a6ac57

View File

@ -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