Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/update-website
diff options
context:
space:
mode:
Diffstat (limited to 'update-website')
-rwxr-xr-xupdate-website18
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'
)