summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2014-11-15 21:07:34 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2014-11-15 21:07:34 +0900
commitbd1e7006c588ac340805cf09736b33e8a12a7395 (patch)
tree9db09fa37c3b6df426b5f9df9fe6ab9d0e895394 /scripts
parentsys-freebsd/*-10.1.0.9999: bump 10.1-RELEASE. (diff)
downloadgentoo-bsd-bd1e7006c588ac340805cf09736b33e8a12a7395.tar.gz
gentoo-bsd-bd1e7006c588ac340805cf09736b33e8a12a7395.tar.bz2
gentoo-bsd-bd1e7006c588ac340805cf09736b33e8a12a7395.zip
stages_builder.sh: added URL support, EXTRAOVERLAY
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkstages/stages_builder.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/mkstages/stages_builder.sh b/scripts/mkstages/stages_builder.sh
index 09055d0..a4eeff0 100755
--- a/scripts/mkstages/stages_builder.sh
+++ b/scripts/mkstages/stages_builder.sh
@@ -61,8 +61,18 @@ prepare(){
[[ $? -ne 0 ]] && exit 1
fi
if [ -n "${EXTRAOVERLAY}" ] ; then
- echo "Copy from ${EXTRAOVERLAY} to ${WORKDIR}/gentoo-bsd"
- cp -a ${EXTRAOVERLAY}/* ${WORKDIR}/gentoo-bsd/
+ if [[ "${EXTRAOVERLAY}" =~ ^http ]]; then
+ echo "Downloading extra overlay."
+ wget -q -O ${WORKDIR}/extraoverlay.tar.bz2 "${EXTRAOVERLAY}"
+ [[ $? -ne 0 ]] && exit 1
+ echo "Copy from ${WORKDIR}/extraoverlay to ${WORKDIR}/gentoo-bsd"
+ mkdir ${WORKDIR}/extraoverlay
+ tar xjf ${WORKDIR}/extraoverlay.tar.bz2 --strip-components=1 -C ${WORKDIR}/extraoverlay
+ cp -a ${WORKDIR}/extraoverlay/* ${WORKDIR}/gentoo-bsd/
+ else
+ echo "Copy from ${EXTRAOVERLAY} to ${WORKDIR}/gentoo-bsd"
+ cp -a ${EXTRAOVERLAY}/* ${WORKDIR}/gentoo-bsd/
+ fi
fi
echo "emerging catalyst..."