Changeset 977 for trunk


Ignore:
Timestamp:
Nov 24, 2006, 1:41:50 AM (12 years ago)
Author:
bruno
Message:

Allow for local tests from local BASE svn content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/svn2build

    r932 r977  
    2222TAG=`cat ${TOOLHOME}/../mondo/TAG`
    2323DEST=${TOPDIR}/${VER}-$TAG
     24TEST="false"
     25OPT=""
    2426mkdir -p $DEST
    2527
     28if [ "$1" = "--test" ]; then
     29    TEST="true"
     30    OPT="-r BASE"
     31    shift
     32fi 
     33
    2634if [ "$1" = "" ]; then
    27         c="mondo-doc mindi mindi-busybox mondo"
     35    c="mondo-doc mindi mindi-busybox mondo"
    2836else
    2937    if [ "$1" = "all" ]; then
     
    4351    dest="$DEST/$p-$v"
    4452    rm -fr $dest
    45     svn export ${TOOLHOME}/../$p $dest
     53    svn $OPT export ${TOOLHOME}/../$p $dest
    4654    echo "$REVISION" > $dest/REVISION
    4755    echo "Generating SVN log file ..."
    48     svn log -v ${TOOLHOME}/../$p > $dest/svn.log
     56    svn $OPT log -v ${TOOLHOME}/../$p > $dest/svn.log
    4957
    5058    for d in `cat ${TOOLHOME}/DISTROS`; do
     
    138146    echo -n "Creating $p tar files (gzip... "
    139147    tar cfphz ${DEST}/$p-$v.tar.gz $p-$v
    140     echo -n " bzip2..."
    141     tar cfphj ${DEST}/$p-$v.tar.bz2 $p-$v
     148    if [ $TEST = "false" ]; then
     149        echo -n " bzip2..."
     150        tar cfphj ${DEST}/$p-$v.tar.bz2 $p-$v
     151    fi
    142152    echo " )"
     153    if [ $TEST = "true" ]; then
     154        echo "Use source under $DEST/$p-$v"
     155    fi
    143156done
    144157
Note: See TracChangeset for help on using the changeset viewer.