diff options
author | Erich Eckner <git@eckner.net> | 2021-02-25 22:34:10 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-25 22:34:10 +0100 |
commit | 22f96f6e1d7455862704df37735d7ece51a932af (patch) | |
tree | 7db88747b2bc7f79786654ecf77f326e76cff7d5 | |
parent | 0d0005ccd27697b71b035446c205a2b7d2bd3deb (diff) | |
download | releng-22f96f6e1d7455862704df37735d7ece51a932af.tar.xz |
update-website: archlinux -> archlinux32
-rwxr-xr-x | update-website | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/update-website b/update-website index 1bd9507..3aa9570 100755 --- a/update-website +++ b/update-website @@ -197,15 +197,15 @@ fi latest_iso_date="$( ls "${mirror_dir}/archisos" | \ - grep '^archlinux-[0-9.]\+-\(dual\|i.86\)\.iso$' | \ - sed 's@^archlinux-\([0-9.]\+\)-\(dual\|i.86\)\.iso$@\1@' | \ + grep '^archlinux32-[0-9.]\+-\(dual\|i.86\)\.iso$' | \ + sed 's@^archlinux32-\([0-9.]\+\)-\(dual\|i.86\)\.iso$@\1@' | \ sort -k1,1 -u | \ tail -n1 )" declare -A desc desc['i686']='i686 only' -desc['dual']='dual bootable' +# desc['dual']='dual bootable' for arch in "${!desc[@]}"; do if [ ! -s "${tmp_dir}/magnet.${arch}" ]; then @@ -213,8 +213,8 @@ for arch in "${!desc[@]}"; do fi if ! tr '&' '\n' < \ "${tmp_dir}/magnet.${arch}" | \ - grep -qxF "dn=archlinux-${latest_iso_date}-${arch}.iso"; then - >&2 printf 'Magnet link for %s is not for %s, skipping.\n' "${arch}" "archlinux-${latest_iso_date}-${arch}.iso" + grep -qxF "dn=archlinux32-${latest_iso_date}-${arch}.iso"; then + >&2 printf 'Magnet link for %s is not for %s, skipping.\n' "${arch}" "archlinux32-${latest_iso_date}-${arch}.iso" continue fi sed -i ' @@ -227,8 +227,8 @@ for arch in "${!desc[@]}"; do if [ ! -s "${tmp_dir}/torrent-seed.${arch}" ]; then continue fi - if ! grep -qF "archlinux-${latest_iso_date}-${arch}" "${tmp_dir}/torrent-seed.${arch}"; then - >&2 printf 'Torrent seed for %s is not for %s, skipping.\n' "${arch}" "archlinux-${latest_iso_date}-${arch}.iso" + if ! grep -qF "archlinux32-${latest_iso_date}-${arch}" "${tmp_dir}/torrent-seed.${arch}"; then + >&2 printf 'Torrent seed for %s is not for %s, skipping.\n' "${arch}" "archlinux32-${latest_iso_date}-${arch}.iso" continue fi sed -i ' @@ -248,7 +248,7 @@ declare -A md5 declare -A sha512 for arch in "${!desc[@]}"; do - iso="${mirror_dir}/archisos/archlinux-${latest_iso_date}-${arch}.iso" + iso="${mirror_dir}/archisos/archlinux32-${latest_iso_date}-${arch}.iso" if [ ! -f "${iso}" ]; then >&2 echo "Can't find iso to arch ${arch}." exit 1 @@ -326,7 +326,7 @@ done sed -i "$( printf '/%s:/s|</strong>.*</li>|</strong> %s</li>|\n' "${values[@]}" - printf '/archlinux-[0-9.]\+-%s\.iso\.sig/s@archlinux-[0-9.]\+-%s\.iso\.sig@archlinux-%s-%s.iso.sig@\n' \ + printf '/archlinux32-[0-9.]\+-%s\.iso\.sig/s@archlinux32-[0-9.]\+-%s\.iso\.sig@archlinux32-%s-%s.iso.sig@\n' \ 'i686' 'i686' "${latest_iso_date}" 'i686' \ 'dual' 'dual' "${latest_iso_date}" 'dual' ) |