Ignore:
Timestamp:
May 8, 2006, 5:31:14 PM (14 years ago)
Author:
bcornec
Message:

Build process reviewed once more :
gentoo integration
slackware integration
mkqemu should only work with tar files, and not SVN (ease VM build and time in build process)
To be continued

DOES NOT WORK AT THE MOMENT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/mkcommon

    r423 r530  
    22#
    33# Prepare build env common for all packages build process from SVN repository
     4# Also prepare the documentation which is common
    45#
    56# $Id$
     
    89umask 022
    910
     11cd $TOOLHOME/..
    1012echo "Generating SVN log file ..."
    11 cd $TOOLHOME/..
    1213svn log -v > /tmp/mondorescue-svn.log
    1314
    1415if [ "$1" = "" ]; then
    15     c="mindi mondo"
     16        c="mondo-doc mindi mondo"
    1617else
    17     c=$1
     18    if [ "$1" = "all" ]; then
     19            c="mindi-kernel mondo-doc mindi mondo"
     20    else
     21        c=$1
     22    fi
    1823fi
    1924if [ "`echo $c | grep mindi-kernel`" != "" ]; then
     
    2833    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
    2934fi
     35
     36#
     37# Should be done before mindi
     38#
     39if [ "`echo $c | grep mondo-doc`" != "" ]; then
     40    cd ${BASE}/svn
     41    echo "Management of mondo-doc ${MONDO_VER}-$REVISION"
     42    rm -rf mondo-doc-${MONDO_VER}
     43    svn export ${VER}/documentation mondo-doc-${MONDO_VER}
     44    svn log -v ${VER}/documentation > mondo-doc-${MONDO_VER}/svn.log
     45    echo "$REVISION" > mondo-doc-${MONDO_VER}/REVISION
     46    cd mondo-doc-${MONDO_VER}
     47    $TOOLHOME/expandver mondorescue-howto.sgml *8
     48    make -f Makefile.howto install INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/en
     49    if [ $? != 0 ]; then
     50        exit -1
     51    fi
     52    make -f Makefile.man install-mondo INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/man
     53    if [ $? != 0 ]; then
     54        exit -1
     55    fi
     56    cd ..
     57
     58    echo "Creating mondo-doc tar files"
     59    tar cfhz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz mondo-doc-${MONDO_VER}
     60    tar cfhj ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 mondo-doc-${MONDO_VER}
     61fi
    3062if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    3163    cd ${BASE}/svn
     
    3466    svn export ${VER}/mindi mindi-${MINDI_VER}
    3567    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
    36     cp -a ${VER}/documentation/mindi.8 mindi-${MINDI_VER}
    37     rm -rf documentation-${MONDO_VER}
    38     svn export ${VER}/documentation documentation-${MONDO_VER}
    39     cd documentation-${MONDO_VER}
    40     $TOOLHOME/expandver mindi*8
    41     make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER}
    42     cd ..
     68    (cd mondo-doc-${MONDO_VER} ; make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER})
    4369    echo "$REVISION" > mindi-${MINDI_VER}/REVISION
    4470    rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
     
    4975    rm -f ${TMP}/mindi-*-root
    5076fi
    51 if [ "`echo $c | grep mondo`" != "" ]; then
     77if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    5278    cd ${BASE}/svn
    5379    echo "Management of mondo ${MONDO_VER}-$REVISION"
     
    5682    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
    5783    echo "$REVISION" > mondo-${MONDO_VER}/REVISION
    58     rm -rf documentation-${MONDO_VER}
    59     svn export ${VER}/documentation documentation-${MONDO_VER}
    60     cd documentation-${MONDO_VER}
    61     $TOOLHOME/expandver mondorescue-howto.sgml mondo*8
    62     make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en
    63     if [ $? != 0 ]; then
    64         exit -1
    65     fi
    66     make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man
    67     if [ $? != 0 ]; then
    68         exit -1
    69     fi
    70     cd ../mondo-${MONDO_VER}
    71     echo "Bootstraping mondo ... "
    72     ./bootstrap
    73     cd ..
     84    (cd mondo-doc-${MONDO_VER} ; make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en ; make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man)
     85    (cd mondo-${MONDO_VER} ; echo "Bootstraping mondo ... " ; ./bootstrap)
    7486
    7587    echo "Creating mondo tar files"
Note: See TracChangeset for help on using the changeset viewer.