diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2020-09-04 10:21:59 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2020-09-04 10:21:59 +0200 |
commit | 66546e6687b076477650a66b9098aa4368722b80 (patch) | |
tree | 30bb5847499d6762b4cd807b13b6c8649502945e /dist-tools | |
parent | b6a21e7f19fbe8ae71b63af05d5b059ea4405459 (diff) | |
download | fetchmail-66546e6687b076477650a66b9098aa4368722b80.tar.gz fetchmail-66546e6687b076477650a66b9098aa4368722b80.tar.bz2 fetchmail-66546e6687b076477650a66b9098aa4368722b80.zip |
makerelease.pl: strip LF from $ncpu.
Diffstat (limited to 'dist-tools')
-rwxr-xr-x | dist-tools/makerelease.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |