2015-05-14 12:36:12

by Yves-Alexis Perez

[permalink] [raw]
Subject: [PATCH] builddeb: generate a changes file from the build

A changes file (also called Debian upload control file) contains
information about binary packages, including the changelog entry, the
maintainer, the package list and the checksums.

It can be used by various Debian tools like dput and dcmd to execute
action on all the build packages at once, for example uploading the
packages to an dedicated Debian repository.
---
scripts/package/builddeb | 3 +++
1 file changed, 3 insertions(+)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 88dbf23..46c2838 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -383,4 +383,7 @@ EOF
create_package "$dbg_packagename" "$dbg_dir"
fi

+# Generate a change file
+(cd $KBUILD_OUTPUT; dpkg-genchanges -b > ../linux_${packageversion}_${debarch}.changes)
+
exit 0
--
2.1.4


2015-05-16 09:44:23

by Yves-Alexis Perez

[permalink] [raw]
Subject: Re: [PATCH] builddeb: generate a changes file from the build

On jeu., 2015-05-14 at 14:35 +0200, Yves-Alexis Perez wrote:

> +# Generate a change file
> +(cd $KBUILD_OUTPUT; dpkg-genchanges -b > ../linux_${packageversion}_${debarch}.changes)
> +

Actually cwd during the build is KBUILD_OUTPUT already, so the cd part
is unnecessary (I can resend a v2 if really needed).

Regards,
--
Yves-Alexis


Attachments:
signature.asc (473.00 B)
This is a digitally signed message part