Factor out sidebar entry construction
This makes it possible to reuse this logic in other modules as well,
preventing code duplication. While at it, move additional_sidebar
merging before the other entries (additional entries should go first,
since the other entries are mostly dev-only etc).
Patch by: Sverre Rabbelier
#! /bin/sh## this file is *inserted* into the install section of the generated# spec file## this is, what dist.py normally doespython setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"for i in `cat INSTALLED_FILES`; do if [ -f ${RPM_BUILD_ROOT}/$i ]; then echo $i >>FILES fi if [ -d ${RPM_BUILD_ROOT}/$i ]; then echo %dir $i >>DIRS fidonecat DIRS FILES >INSTALLED_FILES