Polish translation update, thanks lukasz.czyzykowski@gmail.com
[fdr-django.git] / scripts / rpm-install.sh
blobf337a789b12826db844320ac8b14a1418135ba82
1 #! /bin/sh
3 # This file becomes the install section of the generated spec file.
6 # This is what dist.py normally does.
7 python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
9 # Sort the filelist so that directories appear before files. This avoids
10 # duplicate filename problems on some systems.
11 touch DIRS
12 for i in `cat INSTALLED_FILES`; do
13 if [ -f ${RPM_BUILD_ROOT}/$i ]; then
14 echo $i >>FILES
16 if [ -d ${RPM_BUILD_ROOT}/$i ]; then
17 echo %dir $i >>DIRS
19 done
21 # Make sure we match foo.pyo and foo.pyc along with foo.py (but only once each)
22 sed -e "/\.py[co]$/d" -e "s/\.py$/.py*/" DIRS FILES >INSTALLED_FILES
24 mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1/
25 cp docs/man/* ${RPM_BUILD_ROOT}/%{_mandir}/man1/
26 cat << EOF >> INSTALLED_FILES
27 %doc %{_mandir}/man1/*"
28 EOF