echo "Removing 'Recommends' lines from '${TGT_SPEC_FILE}' ..."
sed -i '/^Recommends/d' "${TGT_SPEC_FILE}"
fi
- echo
- echo "Adding Changelog to '${TGT_SPEC_FILE}' ..."
- if [[ -f bin/dch2speclog ]] ; then
- python${PYTHON_VERSION_DOT} bin/dch2speclog debian/changelog >>"${TGT_SPEC_FILE}"
- else
- dch2speclog debian/changelog >>"${TGT_SPEC_FILE}"
+ if [[ -f debian/changelog ]] ; then
+ echo
+ echo "Adding Changelog to '${TGT_SPEC_FILE}' ..."
+ if [[ -f bin/dch2speclog ]] ; then
+ python${PYTHON_VERSION_DOT} bin/dch2speclog debian/changelog >>"${TGT_SPEC_FILE}"
+ else
+ dch2speclog debian/changelog >>"${TGT_SPEC_FILE}"
+ fi
fi
echo
echo "Generated spec-file:"