Automatic debian changelog generation

This commit is contained in:
s3lph 2018-11-04 14:58:59 +01:00
parent 072db827bb
commit ea18d0e8de
3 changed files with 9 additions and 7 deletions

View file

@ -62,6 +62,13 @@ build_wheel:
build_debian:
stage: build
script:
- echo -n > package/debian/matemat/DEBIAN/changelog
- |
for version in "$(cat CHANGELOG.md | grep '<!-- BEGIN CHANGES' | cut -d ' ' -f 4)"; do
echo "matemat (${version}-1); urgency=medium\n" >> package/debian/matemat/DEBIAN/changelog
cat CHANGELOG.md | grep -A 1000 "<"'!'"-- BEGIN CHANGES ${version} -->" | grep -B 1000 "<"'!'"-- END CHANGES ${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g' >> package/debian/matemat/DEBIAN/changelog
echo "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/matemat/DEBIAN/changelog
done
- cp -r static/ package/debian/matemat/usr/lib/matemat/static/
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
- python3.6 setup.py egg_info -d -b +master install --root=package/debian/matemat/ --prefix=/usr --optimize=1

View file

@ -9,9 +9,9 @@ The packages attached to this release have not been tested.
### Changes
<!-- BEGIN CHANGES v-test -->
<!-- BEGIN CHANGES 0.1 -->
- Added CI release task.
- Went back to Python 3.6 for Debian packaging.
<!-- END CHANGES v-test -->
<!-- END CHANGES 0.1 -->
<!-- END RELEASE v-test -->

View file

@ -1,5 +0,0 @@
matemat (0.1-1) UNRELEASED; urgency=medium
* Initial release.
-- s3lph <account-gitlab-ideynizv@kernelpanic.lol> Wed, 12 Sep 2018 02:04:12 +0000