Ubuntu's RPM install does not compress man pages, so make the fix more generic
[polysh.git] / .install-rpm.sh
blob655d525e3803617c215fcbe243608ee484dab4ae
1 #!/bin/bash
3 # http://bugs.python.org/issue644744
5 python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
7 # 'brp-compress' gzips the man pages without distutils knowing... fix this
8 NEW_BASENAME="$(basename "$(find "$RPM_BUILD_ROOT" -type f -name "polysh.1*")")"
9 set "s/polysh.1/$NEW_BASENAME/g" -i INSTALLED_FILES