Magellan Linux

Annotation of /trunk/mage-buildserver/buildserver-setup-mage-tree.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2786 - (hide annotations) (download) (as text)
Thu Aug 28 09:28:14 2014 UTC (9 years, 8 months ago) by niro
File MIME type: application/x-sh
File size: 986 byte(s)
-rebuild mage-tree for all arches and use location
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     for arch in ${BUILD_ARCH[*]} src
19     do
20     if [ -d ${BUILDROOT}/${arch}/usr/mage ]
21     then
22     rm -r ${BUILDROOT}/${arch}/usr/mage || die "${arch} cleaning mage tree"
23     fi
24    
25 niro 2785 # 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 niro 2588 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 *