Use latest logic for stage1 seed, hppa and ppc need some work as they have all the stages in the same dir

This commit is contained in:
Raúl Porcel 2013-08-14 17:40:22 +00:00
parent 585d8d645f
commit 5c3f1d9036
7 changed files with 86 additions and 9 deletions

View file

@ -4,5 +4,5 @@ version_stamp: 2008.0
rel_type: default
profile: default/linux/alpha/13.0
snapshot: 2008.0
source_subpath: default/stage3-alpha-2008.0
source_subpath: default/stage3-alpha-latest
update_seed: yes

View file

@ -4,4 +4,4 @@ target: stage3
rel_type: default
profile: default/linux/ia64/13.0
snapshot: 2008.0
source_subpath: default/stage2-ia64-2008.0
source_subpath: default/stage2-ia64-latest

View file

@ -4,4 +4,4 @@ target: stage3
rel_type: multilib
profile: default/linux/sparc/experimental/multilib
snapshot: 2008.0
source_subpath: multilib/stage2-sparc64-multilib-2008.0
source_subpath: multilib/stage2-sparc64-multilib-latest

View file

@ -4,4 +4,4 @@ target: stage3
rel_type: default
profile: default/linux/sparc/13.0
snapshot: 2008.0
source_subpath: default/stage2-sparc64-2008.0
source_subpath: default/stage2-sparc64-latest

View file

@ -21,11 +21,36 @@ EMAIL_SUBJECT_PREPEND="[alpha-auto]"
CATALYST_CONFIG=/etc/catalyst/catalyst.conf
BUILD_SRCDIR_BASE=`grep storedir= $CATALYST_CONFIG | cut -d '=' -f2 | sed -e 's/"//g'`
give_latest_from_dates() {
sed 's,-20,~20,g' | \
sort -k +1 -n -t '~' |\
awk -F\~ \
'BEGIN{i=$1; o=$0};
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
END { print o; };' | \
tr '~' '-'
}
pre_build() {
cd ${GITDIR}
git pull
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
pushd $d
for f in $(ls stage3*bz2 | give_latest_from_dates ) ; do
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
ln -sf $f $of
done
popd
done
}
post_build() {
rsync -e 'ssh -i /home/armin76/buildsync.key' /space/catalyst/builds/default/stage3-*${DATESTAMP}*.bz2* /space/catalyst/builds/default/*${DATESTAMP}*.iso* alpha@skimmer.gentoo.org:
rsync -e 'ssh -i /home/armin76/buildsync.key' ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* alpha@skimmer.gentoo.org:
}

View file

@ -20,11 +20,37 @@ EMAIL_SUBJECT_PREPEND="[ia64-auto]"
CATALYST_CONFIG=/etc/catalyst/catalyst.conf
BUILD_SRCDIR_BASE=`grep storedir= $CATALYST_CONFIG | cut -d '=' -f2 | sed -e 's/"//g'`
give_latest_from_dates() {
sed 's,-20,~20,g' | \
sort -k +1 -n -t '~' |\
awk -F\~ \
'BEGIN{i=$1; o=$0};
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
END { print o; };' | \
tr '~' '-'
}
pre_build() {
cd ${GITDIR}
git pull
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/{default,multilib} ; do
pushd $d
for f in $(ls stage3*bz2 | give_latest_from_dates ) ; do
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
ln -sf $f $of
done
popd
done
}
post_build() {
rsync -e 'ssh -i /root/.ssh/id_rsa' /var/tmp/catalyst/builds/default/stage3-*${DATESTAMP}*.bz2* /var/tmp/catalyst/builds/default/*${DATESTAMP}*.iso* ia64@skimmer.gentoo.org:
rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* ia64@skimmer.gentoo.org:
}

View file

@ -20,13 +20,39 @@ EMAIL_SUBJECT_PREPEND="[sparc64-auto]"
CATALYST_CONFIG=/etc/catalyst/catalyst.conf
BUILD_SRCDIR_BASE=`grep storedir= $CATALYST_CONFIG | cut -d '=' -f2 | sed -e 's/"//g'`
give_latest_from_dates() {
sed 's,-20,~20,g' | \
sort -k +1 -n -t '~' |\
awk -F\~ \
'BEGIN{i=$1; o=$0};
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
END { print o; };' | \
tr '~' '-'
}
pre_build() {
cd ${GITDIR}
git pull
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/{default,multilib} ; do
pushd $d
for f in $(ls stage3*bz2 | give_latest_from_dates ) ; do
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
ln -sf $f $of
done
popd
done
}
post_build() {
rsync -e 'ssh -i /root/.ssh/id_rsa' /var/tmp/catalyst/builds/default/stage3-*${DATESTAMP}*.bz2* /var/tmp/catalyst/builds/default/*${DATESTAMP}*.iso* sparc@skimmer.gentoo.org:
rsync -e 'ssh -i /root/.ssh/id_rsa' /var/tmp/catalyst/builds/multilib/stage3-*${DATESTAMP}*.bz2* sparc@skimmer.gentoo.org:multilib
rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* sparc@skimmer.gentoo.org:
rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/multilib/stage3-*${DATESTAMP}*.bz2* sparc@skimmer.gentoo.org:multilib
}