From f14732039fa5085d81c63edba623cc54e20f0449 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Mar 2023 18:12:16 -0300 Subject: src/bin/paku.in: Simplify emission of Debian makefile --- src/bin/paku.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/paku.in b/src/bin/paku.in index db28cc9..2552927 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -382,8 +382,7 @@ sub emit_guix_channel_key() { sub emit_debian() { my $json = load_json(); - my $dir = $json->{datadir}; - my @debs = ("debs = \\\n"); + my @debs = (); my @targets = (); for my $pkg (@{$json->{packages}}) { @@ -460,8 +459,13 @@ sub emit_debian() { } - print ".POSIX:\n\n"; - print "DIR = $dir\n\n"; + print <<~EOF; + .POSIX: + + DIR = $json->{datadir} + + debs = \\ + EOF print @debs, "\n"; print <<~EOF; GPGKEY = '$json->{maintainer}{name} <$json->{maintainer}{email}>' -- cgit v1.2.3