The generated "changelog" was not removed
before re-generating, causing the changelog
to be added twice on repeated runs of "make rpm"
(when bind-mounting the local source).
As a result, rpms failed to build, because
the resulting file had entries in non-chronological
order.
This change removes the generated file
before re-generating, and adds the file
to .gitignore, to prevent it from
accidentally being added to source control.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -54,6 +54,7 @@ set -e |
| 54 | 54 |
make manpages |
| 55 | 55 |
|
| 56 | 56 |
# Convert the CHANGELOG.md file into RPM changelog format |
| 57 |
+ rm -f contrib/builder/rpm/${PACKAGE_ARCH}/changelog
|
|
| 57 | 58 |
VERSION_REGEX="^\W\W (.*) \((.*)\)$" |
| 58 | 59 |
ENTRY_REGEX="^[-+*] (.*)$" |
| 59 | 60 |
while read -r line || [[ -n "$line" ]]; do |