diff options
author | Yuta SATOH <nigoro@gentoo.gr.jp> | 2014-11-16 01:24:53 +0900 |
---|---|---|
committer | Yuta SATOH <nigoro@gentoo.gr.jp> | 2014-11-16 01:24:53 +0900 |
commit | 093a6ac384d993ca66e78607bfce91923d57395c (patch) | |
tree | 410ce8b2b9075f6a246c313fcbbde10b6fc490ba /scripts | |
parent | stages_builder.sh: added URL support, EXTRAOVERLAY (diff) | |
download | gentoo-bsd-093a6ac384d993ca66e78607bfce91923d57395c.tar.gz gentoo-bsd-093a6ac384d993ca66e78607bfce91923d57395c.tar.bz2 gentoo-bsd-093a6ac384d993ca66e78607bfce91923d57395c.zip |
stages_builder.sh: Add the code to download clang stage3.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkstages/stages_builder.sh | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/mkstages/stages_builder.sh b/scripts/mkstages/stages_builder.sh index a4eeff0..d95eb85 100755 --- a/scripts/mkstages/stages_builder.sh +++ b/scripts/mkstages/stages_builder.sh @@ -43,10 +43,21 @@ prepare(){ mkdir -p /var/tmp/catalyst/builds/default fi - if [ ! -e "/var/tmp/catalyst/builds/default/stage3-${TARGETSUBARCH}-freebsd-${OLDVER}.tar.bz2" ] && [ -z "${FORCESTAGE3}" ]; then - echo "Downloading aballier's ${TARGETSUBARCH} stage3 file..." - wget -q -P /var/tmp/catalyst/builds/default http://dev.gentoo.org/~aballier/fbsd${OLDVER}/${TARGETARCH}/stage3-${TARGETSUBARCH}-freebsd-${OLDVER}.tar.bz2 - [[ $? -ne 0 ]] && exit 1 + if [ -z "${FORCESTAGE3}" ] ; then + if [ -z "${CLANG}" ] ; then + local oldstage3fn="stage3-${TARGETSUBARCH}-freebsd-${OLDVER}" + local oldstage3url="http://dev.gentoo.org/~aballier/fbsd${OLDVER}/${TARGETARCH}/${oldstage3fn}.tar.bz2" + else + local oldstage3fn="stage3-${TARGETSUBARCH}-clangfbsd-${OLDVER}" + local oldstage3url="http://dev.gentoo.org/~aballier/fbsd${OLDVER}/${TARGETARCH}/clang/${oldstage3fn}.tar.bz2" + fi + + if [ ! -e "/var/tmp/catalyst/builds/default/${oldstage3fn}.tar.bz2" ] ; then + echo "Downloading aballier's ${TARGETSUBARCH} stage3 file..." + wget -q -P /var/tmp/catalyst/builds/default "${oldstage3url}" + [[ $? -ne 0 ]] && exit 1 + export FORCESTAGE3="${oldstage3fn}" + fi fi cd ${WORKDIR} |