diff mbox series

[ovs-dev,v4,7/9] debian: Fix generation of copyright file.

Message ID 20220714155546.3402682-7-frode.nordahl@canonical.com
State Accepted
Commit 3e31a2dafc3f0a096241eba1c509186fd683f6b3
Headers show
Series [ovs-dev,v4,1/9] debian: Archive debian packaging source. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

Frode Nordahl July 14, 2022, 3:55 p.m. UTC
The recipe for inserting authors from AUTHORS.rst is wrong.

Fixes: 3deca69b08f2 ("doc: Convert AUTHORS to rST")
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
---
 debian/automake.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/debian/automake.mk b/debian/automake.mk
index afba5b0e4..a3c2d7289 100644
--- a/debian/automake.mk
+++ b/debian/automake.mk
@@ -83,9 +83,9 @@  DIST_HOOKS += check-debian-changelog-version
 $(srcdir)/debian/copyright: AUTHORS.rst debian/copyright.in
 	$(AM_V_GEN) \
 	{ sed -n -e '/%AUTHORS%/q' -e p < $(srcdir)/debian/copyright.in;   \
-	  sed '34,/^$$/d' $(srcdir)/AUTHORS.rst  |				   \
+	  tail -n +28 $(srcdir)/AUTHORS.rst | sed '1,/^$$/d' |		   \
 		sed -n -e '/^$$/q' -e 's/^/  /p';			   \
-	  sed -e '34,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;	   \
+	  sed -e '1,/%AUTHORS%/d' $(srcdir)/debian/copyright.in;	   \
 	} > $@
 
 DISTCLEANFILES += debian/copyright