diff options
author | EuAndreh <eu@euandre.org> | 2023-03-25 18:12:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-25 18:12:16 -0300 |
commit | f14732039fa5085d81c63edba623cc54e20f0449 (patch) | |
tree | d8c1cf6b9fbffe9dc0de86afd6a53b81a596f438 /src/bin/paku.in | |
parent | Makefile: Do not compress files being rsynced locally (diff) | |
download | package-repository-f14732039fa5085d81c63edba623cc54e20f0449.tar.gz package-repository-f14732039fa5085d81c63edba623cc54e20f0449.tar.xz |
src/bin/paku.in: Simplify emission of Debian makefile
Diffstat (limited to 'src/bin/paku.in')
-rwxr-xr-x | src/bin/paku.in | 12 |
1 files 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}>' |