2015-02-16 19:03:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
RSYNC_MIRROR=${RSYNC_MIRROR:-rsync://mirrors.rit.edu/gentoo/}
|
|
|
|
arch=$1
|
|
|
|
g_arch=$(echo ${arch}|sed 's/i.86/x86/')
|
|
|
|
rsync="rsync --no-motd"
|
|
|
|
echo -n ${arch}:
|
|
|
|
|
|
|
|
latest=/releases/${g_arch}/autobuilds/latest-stage3.txt
|
|
|
|
|
|
|
|
${rsync} ${RSYNC_MIRROR}${latest} latest-stage3.txt
|
|
|
|
file=$(egrep -v 'nomultilib|hardened|uclibc|^#' latest-stage3.txt \
|
2015-02-16 19:39:52 +01:00
|
|
|
| grep -E ${arch}\|i686 |head -n 1 \
|
2015-02-16 19:03:44 +01:00
|
|
|
| cut -d ' ' -f 1)
|
|
|
|
|
|
|
|
file=/releases/${g_arch}/autobuilds/${file}
|
|
|
|
echo ${file}
|
|
|
|
${rsync} ${RSYNC_MIRROR}${file} stage3-${arch}-latest.tar.bz2
|
2015-02-22 16:32:16 +01:00
|
|
|
rm -f latest-stage3.txt
|