From 5d13ab69130691734020c588271f3a657cec9e68 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sat, 2 Mar 2019 22:52:11 -0600 Subject: [PATCH] Edit the changelog. --- templates/packagebuild.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/packagebuild.xml b/templates/packagebuild.xml index 4f37661..111b401 100644 --- a/templates/packagebuild.xml +++ b/templates/packagebuild.xml @@ -40,9 +40,12 @@ - git clone {{ UPSTREAM_URL }} upstream; - export DATE="$(head -1 debian/changelog | sed -n '/(/,/)/{:a; $!N; /)/!{$!ba}; s/.*(\([^)]*\)).*/\1/p}' | cut -d '-' -f1)+git$(date +'%Y%m%d%H%M')"; - echo $DATE +mkdir {{ NAME }}; +mv -v debian {{ NAME }}; +git clone {{ UPSTREAM_URL }} upstream; +export VERSION="$(head -1 {{ NAME }}/debian/changelog | sed -n '/(/,/)/{:a; $!N; /)/!{$!ba}; s/.*(\([^)]*\)).*/\1/p}' | cut -d '-' -f1)+git$(date +'%Y%m%d%H%M')"; +sed -i "1i{{ NAME }} ($VERSION-0ubuntu1~ppa1) {{ RELEASE }}; urgency=low\n\n * CI upload.\n\n -- Lugito $(date +'%a, %d %b %Y %T %z')\n" {{ NAME }}/debian/changelog +cat {{ NAME }}/debian/changelog