From d98ebcfca34d5a9adc0e4c2d1ad6bfdeaabbdd6d Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 5 Feb 2022 16:13:09 +0100 Subject: much more cleanup --- update-website | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'update-website') diff --git a/update-website b/update-website index c653820..2d735a1 100755 --- a/update-website +++ b/update-website @@ -220,24 +220,18 @@ date=$(echo "${iso}" \ # update magnet links if [ -s "${tmp_dir}/magnet.link.set" ]; then - if ! tr '&' '\n' < \ - "${tmp_dir}/magnet.link.set" | \ - grep -qxF "dn=${iso}"; then - sed -i ' - /
  • ()?Magnet link for \S\+ ('"${desc}"')/ s/>Magnet link for \S\+ />Magnet link for '"${date}"' / - ' "${website_dir}/download/index.html" - else - >&2 printf 'Magnet link for %s is not for %s, skipping.\n' "${arch}" "${iso}" - fi + sed -i ' + /
  • Magnet link for \S\+ ('"${desc}"')/ s/>Magnet link for \S\+ />Magnet link for '"${date}"' / + ' "${website_dir}/download/index.html" fi # update torrent links if [ -s "${tmp_dir}/torrent-seed.set" ]; then if grep -qF "archlinux32-${date}-${arch}" "${tmp_dir}/torrent-seed.set"; then sed -i ' - /
  • ()?Torrent for \S\+ ('"${desc["${arch}"]}"')/ s/>Torrent for \S\+ />Torrent for '"${date}"' / + /
  • Torrent for \S\+ ('"${desc}"')/ s/>Torrent for \S\+ />Torrent for '"${date}"' / ' "${website_dir}/download/index.html" else >&2 printf 'Torrent seed for %s is not for %s, skipping.\n' "${arch}" "${iso}" @@ -250,11 +244,11 @@ if [ -s "${tmp_dir}/update_iso.set" ]; then >&2 echo "Can't find iso to arch '${mirror_dir}/archisos/${iso}'." exit 1 fi - kernel="$("${base_dir}"/check-iso --output-dir "${mirror_dir}/archisos" --kernel-version)" - size="$("${base_dir}"/check-iso --output-dir "${mirror_dir}/archisos" --size)" - md5="$("${base_dir}"/check-iso --output-dir "${mirror_dir}/archisos" --md5sum)" - sha512="$("${base_dir}"/check-iso --output-dir "${mirror_dir}/archisos" --sha512sum)" - sign_key="$("${base_dir}"/check-iso --output-dir "${mirror_dir}/archisos" --sign-key)" + kernel="$("${base_dir}"/check-iso --iso="${iso}" --output-dir "${mirror_dir}/archisos" --kernel-version)" + size="$("${base_dir}"/check-iso --iso="${iso}" --output-dir "${mirror_dir}/archisos" --size)" + md5="$("${base_dir}"/check-iso --iso="${iso}" --output-dir "${mirror_dir}/archisos" --md5sum)" + sha512="$("${base_dir}"/check-iso --iso="${iso}" --output-dir "${mirror_dir}/archisos" --sha512sum)" + sign_key="$("${base_dir}"/check-iso --iso="${iso}" --output-dir "${mirror_dir}/archisos" --sign-key)" fi # adapt release info on the top -- cgit v1.2.3-70-g09d2