Mercurial > genshi > mirror
annotate examples/trac/scripts/rpm-install.sh @ 39:93b4dcbafd7b trunk
Copy Trac to main branch.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 18:53:27 +0000 |
parents | |
children |
rev | line source |
---|---|
39 | 1 #! /bin/sh |
2 # | |
3 # this file is *inserted* into the install section of the generated | |
4 # spec file | |
5 # | |
6 | |
7 # this is, what dist.py normally does | |
8 ./setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" | |
9 | |
10 # catch compressed man pages | |
11 sed -i -e 's@\(.\+/man/man[[:digit:]]/.\+\.[[:digit:]]\)$@\1*@' "INSTALLED_FILES" | |
12 | |
13 # catch any compiled python files (.pyc, .pyo), but don't list them twice | |
14 sed -i -e 's@\(.\+\)\.py$@\1.py*@' \ | |
15 -e '/.\+\.pyc$/d' \ | |
16 "INSTALLED_FILES" |