From bbd019a2917e54131fda045eaacd5f76473f3e9c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Jun 2020 13:07:04 -0400 Subject: dev/releases/1/packages: Fix script The "bins" variable began with a newline character, which increased the count of binary packages by one. --- (limited to 'dev') diff --git a/dev/releases/1/packages.mdwn b/dev/releases/1/packages.mdwn index 13b03d7..e1caf29 100644 --- a/dev/releases/1/packages.mdwn +++ b/dev/releases/1/packages.mdwn @@ -108,9 +108,6 @@ The above list was generated by running the following shell script: verw=33 base_url='http://files.proteanos.com/pub/proteanos/feeds/dev/trunk' - LF=' - ' - # Print header i=0 l=$(($pkgw + $verw + 2)) @@ -141,11 +138,11 @@ The above list was generated by running the following shell script: # Collect binary package names bins='' for aps in $(wget -q -O - "${base_url}/Manifest" | grep -Fv 'src/all/base'); do - bins="${bins}${LF}$(wget -q -O - "${base_url}/${aps}/Packages" | \ + bins="${bins} $(wget -q -O - "${base_url}/${aps}/Packages" | \ sed -n 's/^Package: //p;')" done # Print totals printf '%s\n' "${tblline}" printf 'Source packages: %d\n' "${srcs}" - printf 'Binary packages: %d\n' "$(printf '%s\n' "${bins}" | sort -u | wc -l)" + printf 'Binary packages: %d\n' "$(printf '%s\n' ${bins} | sort -u | wc -l)" -- cgit v0.9.1