Annotation of /trunk/mage-buildserver/buildserver-setup-mage-tree.sh
Parent Directory | Revision Log
Revision 2784 -
(hide annotations)
(download)
(as text)
Thu Aug 28 09:24:48 2014 UTC (10 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 968 byte(s)
Thu Aug 28 09:24:48 2014 UTC (10 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 968 byte(s)
-removed commented cruft
1 | niro | 2588 | #!/bin/bash |
2 | |||
3 | # get configuration | ||
4 | BUILDSERVER_CONFIG_DIR="/etc/mage-buildserver" | ||
5 | source ${BUILDSERVER_CONFIG_DIR}/buildserver.conf | ||
6 | |||
7 | source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh | ||
8 | |||
9 | if [ ! -f ${BUILDROOT}/.stamps/mage_svn-checkout-ok ] | ||
10 | then | ||
11 | die "svn checkout of mage required. run buildserver-svn first." | ||
12 | fi | ||
13 | if [ ! -f ${BUILDROOT}/.stamps/smage_svn-checkout-ok ] | ||
14 | then | ||
15 | die "svn checkout of smage required. run buildserver-svn first." | ||
16 | fi | ||
17 | |||
18 | # create buildroot layout | ||
19 | if [ -d ${BUILDROOT}/tmp/mage-tree ] | ||
20 | then | ||
21 | rm -r ${BUILDROOT}/tmp/mage-tree || die "cleaning global mage tree tmp" | ||
22 | install -d ${BUILDROOT}/tmp/mage-tree || die "creating global mage tree tmp dir" | ||
23 | fi | ||
24 | |||
25 | for arch in ${BUILD_ARCH[*]} src | ||
26 | do | ||
27 | if [ -d ${BUILDROOT}/${arch}/usr/mage ] | ||
28 | then | ||
29 | rm -r ${BUILDROOT}/${arch}/usr/mage || die "${arch} cleaning mage tree" | ||
30 | fi | ||
31 | |||
32 | runarch "${arch}" mage regen-mage-tree || die "${arch} regen mage tree" | ||
33 | touch ${BUILDROOT}/.stamps/${arch}_initial-mage-tree-ok | ||
34 | done |
Properties
Name | Value |
---|---|
svn:executable | * |