Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2588 - (hide annotations) (download) (as text)
Thu Feb 6 13:07:22 2014 UTC (10 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 1180 byte(s)
-initial version
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     # override
10     #BUILDROOT="/mnt/test-buildroot"
11     #BUILD_ARCH=( x86_64 i686 )
12     #BUILDROOT_PROFILE="R11"
13     #SMAGE_SVN_REPO="svn://cvs.magellan-linux.de/smage/trunk"
14     #MAGE_SVN_REPO="svn://cvs.magellan-linux.de/mage/trunk"
15    
16     if [ ! -f ${BUILDROOT}/.stamps/mage_svn-checkout-ok ]
17     then
18     die "svn checkout of mage required. run buildserver-svn first."
19     fi
20     if [ ! -f ${BUILDROOT}/.stamps/smage_svn-checkout-ok ]
21     then
22     die "svn checkout of smage required. run buildserver-svn first."
23     fi
24    
25     # create buildroot layout
26     if [ -d ${BUILDROOT}/tmp/mage-tree ]
27     then
28     rm -r ${BUILDROOT}/tmp/mage-tree || die "cleaning global mage tree tmp"
29     install -d ${BUILDROOT}/tmp/mage-tree || die "creating global mage tree tmp dir"
30     fi
31    
32     for arch in ${BUILD_ARCH[*]} src
33     do
34     if [ -d ${BUILDROOT}/${arch}/usr/mage ]
35     then
36     rm -r ${BUILDROOT}/${arch}/usr/mage || die "${arch} cleaning mage tree"
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 *