Contents of /trunk/mage-buildserver/buildserver-setup-mage-tree.sh
Parent Directory | Revision Log
Revision 2785 -
(show annotations)
(download)
(as text)
Thu Aug 28 09:27:32 2014 UTC (10 years ago) by niro
File MIME type: application/x-sh
File size: 1213 byte(s)
Thu Aug 28 09:27:32 2014 UTC (10 years ago) by niro
File MIME type: application/x-sh
File size: 1213 byte(s)
-rebuild mage-tree for all arches and use location
1 | #!/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 | # create buildroot layout |
33 | if [ -d ${BUILDROOT}/mage-tree/${arch} ] |
34 | then |
35 | rm -r ${BUILDROOT}/mage-tree/${arch} || die "cleaning global mage tree tmp" |
36 | install -d ${BUILDROOT}/mage-tree/${arch} || die "creating global mage tree tmp dir" |
37 | fi |
38 | |
39 | runarch "${arch}" mage regen-mage-tree || die "${arch} regen mage tree" |
40 | touch ${BUILDROOT}/.stamps/${arch}_initial-mage-tree-ok |
41 | done |
Properties
Name | Value |
---|---|
svn:executable | * |