Changeset 549 for branches/stable


Ignore:
Timestamp:
May 14, 2006, 1:42:49 AM (13 years ago)
Author:
bcornec
Message:

Build process update:
3 phases work:

svn2tar creates the source tar files instantiated from SVN
svn2build creates all the pkg build scripts for all pkgs from SVN
mkqemu will then uses these results to create the real pkgs

creation of a svn-env containing the SVN part of common-env

Location:
branches/stable/tools
Files:
1 deleted
3 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/common-env

    r548 r549  
    11#!/bin/bash
    22#
    3 # Creates common environment from SVN repository
     3# Creates common environment
    44#
    55# $Id$
     
    1212export TMP=${BASE}/tmp
    1313mkdir -p ${TMP}
    14 
    15 # Should not be modified below
    16 export SVNBRANCH="branches/`cat ${TOOLHOME}/../mondo/VERSION`"
    17 export MINDI_VER=`cat ${BASE}/svn/${SVNBRANCH}/mindi/VERSION`
    18 export MONDO_VER=`cat ${BASE}/svn/${SVNBRANCH}/mondo/VERSION`
    19 
    20 # To be safe for SVN commands
    21 cd $TOOLHOME/..
    22 export REVISION=`svnversion .`
    23 export TAG=`cat ${TOOLHOME}/TAG
  • branches/stable/tools/mkdeliv

    r543 r549  
    2020fi
    2121
     22. $TOOLHOME/common-env
     23. $TOOLHOME/svn-env
    2224. $TOOLHOME/rpm-env
    2325
  • branches/stable/tools/svn-env

    r548 r549  
    11#!/bin/bash
    22#
    3 # Creates common environment from SVN repository
     3# Creates common environment for SVN repository
    44#
    55# $Id$
    66#
    77
    8 # Adapt to your needs
    9 export BASE=${HOME}/mondo
    10 export TOPDIR=${BASE}/RPMS
    11 mkdir -p ${TOPDIR}
    12 export TMP=${BASE}/tmp
    13 mkdir -p ${TMP}
    14 
    15 # Should not be modified below
    168export SVNBRANCH="branches/`cat ${TOOLHOME}/../mondo/VERSION`"
    179export MINDI_VER=`cat ${BASE}/svn/${SVNBRANCH}/mindi/VERSION`
  • branches/stable/tools/svn2build

    r548 r549  
    11#!/bin/bash
    22#
    3 # Creates SPEC file for RPMs packages from SVN repository
    4 #
    5 # 1st parameter: the version of the tool
    6 # 2nd parameter: the original file to process
     3# Creates build file for packages from SVN repository
    74#
    85# $Id$
    96#
    107
    11 dir=`dirname $2`
    12 if [ -f ${dir}/../$ddir/spec.m4 ]; then
    13     inc=${dir}/../$ddir/spec.m4
    14 elif [ -f ${dir}/../$dfam/spec.m4 ]; then
    15     inc=${dir}/../$dfam/spec.m4
     8
     9umask 022
     10dname=`dirname $0`
     11prem=`echo $dname |cut -c1`
     12if [ ${prem} == "/" ]; then
     13        export TOOLHOME=$dname
    1614else
    17     echo "Unable to build RPM for this distro. Please report to authors"
    18     exit -1
     15        export TOOLHOME=${PWD}/$dname
    1916fi
    2017
    21 # Do not echo as stdout redirected
    22 #echo "Using $inc customization to build SPEC file"
     18cd $TOOLHOME
     19. ./common-env
     20. ./svn-env
    2321
    24 cp $inc /tmp/mondorescue.mc
    25 cat >> /tmp/mondorescue.mc << EOF
    26 define(\`RRR', ${REVISION}${suf})dnl
    27 define(\`EEE', ${REVISION})dnl
    28 define(\`VVV', ${1})dnl
    29 EOF
    30 m4 /tmp/mondorescue.mc $2
    31 rm -f /tmp/mondorescue.mc
     22mkdir -p ${TOPDIR}/SPECS
     23
     24if [ "$1" = "" ]; then
     25        c="mondo-doc mindi mondo"
     26else
     27    if [ "$1" = "all" ]; then
     28            c="mindi-kernel mondo-doc mindi mondo"
     29    else
     30        c=$1
     31    fi
     32fi
     33
     34
     35cd ${BASE}/svn
     36
     37for d in `cat $TOOLHOME/DISTROS`; do
     38    for p in $c; do
     39        v=`cat ${SVNBRANCH}/$p/VERSION`
     40        echo "Management of build of $v-$REVISION"
     41        rm -fr $p-$v
     42        svn export ${SVNBRANCH}/$p $p-$v
     43        echo "$REVISION" > $p-$v/REVISION
     44        echo "Generating SVN log file ..."
     45        svn log -v ${SVNBRANCH}/$p > $p-$v/svn.log
     46   
     47        if [ _"`echo $p | grep mondo-doc`" != _"" ]; then
     48            cd ${p}-${v}
     49            $TOOLHOME/expandver mondorescue-howto.sgml *8
     50            make -f Makefile.howto
     51            if [ $? != 0 ]; then
     52                exit -1
     53            fi
     54            make -f Makefile.man
     55            if [ $? != 0 ]; then
     56                exit -1
     57            fi
     58            cd ..
     59        fi
     60   
     61        if [ _"`echo $p | grep -v kernel | grep mindi`" != _"" ]; then
     62            v1=`cat ${SVNBRANCH}/mondo-doc/VERSION`
     63            if [ ! -d mondo-doc-$v1 ]; then
     64                echo "mondo-doc should be created before $p"
     65                exit -1
     66            fi
     67            (cd mondo-doc-$v1 ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v)
     68            rm -f $p-$v/rootfs/sbin/parted2fdisk-ia64
     69        fi
     70        if [ "`echo $p | grep -v doc | grep  mondo`" != "" ]; then
     71            v1=`cat ${SVNBRANCH}/mondo-doc/VERSION`
     72            if [ ! -d mondo-doc-$v1 ]; then
     73                echo "mondo-doc should be created before $p"
     74                exit -1
     75            fi
     76            (cd mondo-doc-$v1 ; make -f Makefile.howto install INSTALLDIR=../$p-$v/docs/en ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v/docs/man)
     77            (cd $p-$v ; echo "Bootstraping mondo ... " ; ./bootstrap)
     78        fi
     79   
     80        # Finally creates the tar files
     81        echo "Creating $p tar files"
     82        tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tgz $p-$v
     83        tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v
     84    done
     85done
  • branches/stable/tools/svn2tar

    r548 r549  
    1818cd $TOOLHOME
    1919. ./common-env
     20. ./svn-env
    2021
    2122mkdir -p ${TOPDIR}/SOURCES
Note: See TracChangeset for help on using the changeset viewer.