view examples/trac/scripts/rpm-install.sh @ 82:5ca4be55ad0b trunk

Some minor cleanup.
author cmlenz
date Sat, 15 Jul 2006 11:59:13 +0000
parents 93b4dcbafd7b
children
line wrap: on
line source
#! /bin/sh
#
# this file is *inserted* into the install section of the generated
# spec file
#

# this is, what dist.py normally does
./setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"

# catch compressed man pages
sed -i -e 's@\(.\+/man/man[[:digit:]]/.\+\.[[:digit:]]\)$@\1*@' "INSTALLED_FILES"

# catch any compiled python files (.pyc, .pyo), but don't list them twice
sed -i -e 's@\(.\+\)\.py$@\1.py*@' \
       -e '/.\+\.pyc$/d' \
       "INSTALLED_FILES"
Copyright (C) 2012-2017 Edgewall Software