forked from s3lph/matemat
Automatic debian changelog generation
This commit is contained in:
parent
072db827bb
commit
ea18d0e8de
3 changed files with 9 additions and 7 deletions
|
@ -62,6 +62,13 @@ build_wheel:
|
||||||
build_debian:
|
build_debian:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
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 static/ package/debian/matemat/usr/lib/matemat/static/
|
||||||
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
|
- 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
|
- python3.6 setup.py egg_info -d -b +master install --root=package/debian/matemat/ --prefix=/usr --optimize=1
|
||||||
|
|
|
@ -9,9 +9,9 @@ The packages attached to this release have not been tested.
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
<!-- BEGIN CHANGES v-test -->
|
<!-- BEGIN CHANGES 0.1 -->
|
||||||
- Added CI release task.
|
- Added CI release task.
|
||||||
- Went back to Python 3.6 for Debian packaging.
|
- Went back to Python 3.6 for Debian packaging.
|
||||||
<!-- END CHANGES v-test -->
|
<!-- END CHANGES 0.1 -->
|
||||||
|
|
||||||
<!-- END RELEASE v-test -->
|
<!-- END RELEASE v-test -->
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue