Ignore:
Timestamp:
May 16, 2006, 1:37:07 AM (14 years ago)
Author:
bcornec
Message:

mondo-doc & mindi-kernel structure updated for build management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/svn2build

    r550 r551  
    4444
    4545    for d in `cat ${TOOLHOME}/DISTROS`; do
    46         ddir=`echo $d | cut -f'_' -d1`
    47         dver=`echo $d | cut -f'_' -d2`
     46        ddir=`echo $d | cut -d_ -f1`
     47        dver=`echo $d | cut -d_ -f2`
    4848        echo "Generating build files for $ddir ($dver)"
    4949        if [ $ddir = "debian" ]; then
     
    6262            suf=".${dfam}${dver}"
    6363            BUILDDIR=${TOPDIR}/slack
    64         elif [ $ddir = "sles" || $ddir = "suse" ]; then
     64        elif [ $ddir = "sles" -o $ddir = "suse" ]; then
    6565            dfam="suse"
    6666            dtype="rpm"
    6767            suf=".${ddir}${dver}"
    6868            BUILDDIR=${TOPDIR}/SPECS
    69         elif [ $ddir = "fedora" || $ddir = "redhat" || $ddir = "rhel" ]; then
     69        elif [ $ddir = "fedora" -o $ddir = "redhat" -o $ddir = "rhel" ]; then
    7070            dfam="redhat"
    7171            dtype="rpm"
     
    7979            fi
    8080            BUILDDIR=${TOPDIR}/SPECS
    81         elif [ $ddir = "mandrake" || $ddir = "mandriva" ]; then
     81        elif [ $ddir = "mandrake" -o $ddir = "mandriva" ]; then
    8282            dfam="mandriva"
    8383            dtype="rpm"
     
    9494        mkdir -p ${BUILDDIR}
    9595
     96        ddd=`LANG=C ; date '+%Y-%m-%d'`
     97        cat > /tmp/mondorescue.mc << EOF
     98define(\`RRR', ${TAG}${suf})dnl
     99define(\`VVV', ${v})dnl
     100define(\`DDD', ${ddd})dnl
     101EOF
     102
     103        mkdir -p $p-$v/distributions/$ddir
    96104        if [ $dtype = "rpm" ]; then
    97105            if [ -f $p-$v/distributions/$ddir/spec.m4 ]; then
     
    103111                exit -1
    104112            fi
    105             cp $inc /tmp/mondorescue.mc
    106             ddd=`LANG=C ; date '+%Y-%m-%d'`
    107             cat >> /tmp/mondorescue.mc << EOF
    108 define(\`RRR', ${TAG}${suf})dnl
    109 define(\`VVV', ${v})dnl
    110 define(\`DDD', ${ddd})dnl
    111 EOF
    112113            echo "Using $inc customization to build SPEC file"
    113             m4 /tmp/mondorescue.mc $p-$v/distributions/rpm/$p.spec > $p-$v/distributions/$ddir/$p.spec
     114            m4 /tmp/mondorescue.mc $inc $p-$v/distributions/rpm/$p.spec > $p-$v/distributions/$ddir/$p.spec
    114115
    115116            if [ -f $p-$v/distributions/$ddir/changelog ]; then
     
    134135
    135136        elif [ $dtype = "ebuild" ]; then
    136             echo "Gentoo Buid"
     137            echo "Gentoo Build"
    137138        else
    138             echo "Unknown Buid"
     139            echo "Unknown Build"
    139140        fi
    140141    done
     
    178179    # Finally creates the tar files
    179180    echo "Creating $p tar files"
    180     tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tgz $p-$v
    181     tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v
     181    tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.gz $p-$v
     182    gzip -cd ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.gz | bzip2 -c3 > ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2
     183    #tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v
    182184done
    183185
Note: See TracChangeset for help on using the changeset viewer.