15 |
die "svn checkout of smage required. run buildserver-svn first." |
die "svn checkout of smage required. run buildserver-svn first." |
16 |
fi |
fi |
17 |
|
|
|
# create buildroot layout |
|
|
if [ -d ${BUILDROOT}/tmp/mage-tree ] |
|
|
then |
|
|
rm -r ${BUILDROOT}/tmp/mage-tree || die "cleaning global mage tree tmp" |
|
|
install -d ${BUILDROOT}/tmp/mage-tree || die "creating global mage tree tmp dir" |
|
|
fi |
|
|
|
|
18 |
for arch in ${BUILD_ARCH[*]} src |
for arch in ${BUILD_ARCH[*]} src |
19 |
do |
do |
20 |
if [ -d ${BUILDROOT}/${arch}/usr/mage ] |
if [ -d ${BUILDROOT}/${arch}/usr/mage ] |
22 |
rm -r ${BUILDROOT}/${arch}/usr/mage || die "${arch} cleaning mage tree" |
rm -r ${BUILDROOT}/${arch}/usr/mage || die "${arch} cleaning mage tree" |
23 |
fi |
fi |
24 |
|
|
25 |
|
# create buildroot layout |
26 |
|
if [ -d ${BUILDROOT}/mage-tree/${arch} ] |
27 |
|
then |
28 |
|
rm -r ${BUILDROOT}/mage-tree/${arch} || die "cleaning global mage tree tmp" |
29 |
|
install -d ${BUILDROOT}/mage-tree/${arch} || die "creating global mage tree tmp dir" |
30 |
|
fi |
31 |
|
|
32 |
runarch "${arch}" mage regen-mage-tree || die "${arch} regen mage tree" |
runarch "${arch}" mage regen-mage-tree || die "${arch} regen mage tree" |
33 |
touch ${BUILDROOT}/.stamps/${arch}_initial-mage-tree-ok |
touch ${BUILDROOT}/.stamps/${arch}_initial-mage-tree-ok |
34 |
done |
done |