From 66546e6687b076477650a66b9098aa4368722b80 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 4 Sep 2020 10:21:59 +0200 Subject: makerelease.pl: strip LF from $ncpu. --- dist-tools/makerelease.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dist-tools') diff --git a/dist-tools/makerelease.pl b/dist-tools/makerelease.pl index 6523d595..e44e988d 100755 --- a/dist-tools/makerelease.pl +++ b/dist-tools/makerelease.pl @@ -122,7 +122,9 @@ open(my $p, "-|", "nproc 2>/dev/null || gnproc 2>/dev/null || sysctl -n hw.ncpu if (not defined ($ncpu = <$p>)) { die "cannot read number of CPUs"; } close $p or die "could not find number of CPUs"; -print "### CPUs for make: $ncpu\n"; +chomp $ncpu; + +print "--- CPUs for make: $ncpu\n"; if ($ncpu < 1) { warn "ncpus unplausible, assuming 2"; $ncpu = 2; } -- cgit v1.2.3