Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (34 sloc) 0.977 kb
INSTALLDIR=install
function build_rpms {
NAME=$1
shift
CHANGELOG=$(awk '
BEGIN { changelogfound=0; }
/^'${NAME}'/{ changelogfound=1; next };
/^comoonics/ { changelogfound=0; next };
/^mgrep/ { changelogfound=0; next };
{
if (changelogfound == 1) {
print
}
}
' < docs/CHANGELOG)
for file in $(find $INSTALLDIR -maxdepth 1 -type f); do
cp $file $(basename $file)
done
for file in $(find $INSTALLDIR/$NAME -maxdepth 1 -type f); do
cp $file $(basename $file)
done
if [ $# -eq 0 ]; then
PYTHONPATH=./ python setup.py $NAME -v bdist_rpm --spec-only --changelog="${CHANGELOG}"
PYTHONPATH=./ python setup.py $NAME -v bdist_rpm --source-only --changelog="${CHANGELOG}"
else
PYTHONPATH=./ python setup.py $NAME -v bdist_rpm $@ --changelog="${CHANGELOG}"
fi
for file in $(find $INSTALLDIR -maxdepth 1 -type f); do
rm -f $(basename $file)
done
for file in $(find $INSTALLDIR/$NAME -maxdepth 1 -type f); do
rm -f $(basename $file)
done
}
Jump to Line
Something went wrong with that request. Please try again.