aboutsummaryrefslogtreecommitdiff
path: root/src/bin/paku.in
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-25 18:12:16 -0300
committerEuAndreh <eu@euandre.org>2023-03-25 18:12:16 -0300
commitf14732039fa5085d81c63edba623cc54e20f0449 (patch)
treed8c1cf6b9fbffe9dc0de86afd6a53b81a596f438 /src/bin/paku.in
parentMakefile: Do not compress files being rsynced locally (diff)
downloadpackage-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-xsrc/bin/paku.in12
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}>'