From ea18d0e8dea8d6ed911e37691930e20f2bad0b92 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 4 Nov 2018 14:58:59 +0100 Subject: [PATCH] Automatic debian changelog generation --- .gitlab-ci.yml | 7 +++++++ CHANGELOG.md | 4 ++-- package/debian/matemat/DEBIAN/changelog | 5 ----- 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 package/debian/matemat/DEBIAN/changelog diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 254a17b..34390da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 '" | 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 diff --git a/CHANGELOG.md b/CHANGELOG.md index a8aa755..b4381e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ The packages attached to this release have not been tested. ### Changes - + - Added CI release task. - Went back to Python 3.6 for Debian packaging. - + diff --git a/package/debian/matemat/DEBIAN/changelog b/package/debian/matemat/DEBIAN/changelog deleted file mode 100644 index 8b78df4..0000000 --- a/package/debian/matemat/DEBIAN/changelog +++ /dev/null @@ -1,5 +0,0 @@ -matemat (0.1-1) UNRELEASED; urgency=medium - - * Initial release. - - -- s3lph Wed, 12 Sep 2018 02:04:12 +0000