Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2784 by niro, Thu Aug 28 09:24:48 2014 UTC revision 2786 by niro, Thu Aug 28 09:28:14 2014 UTC
# Line 15  then Line 15  then
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 ]
# Line 29  do Line 22  do
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

Legend:
Removed from v.2784  
changed lines
  Added in v.2786