Changeset 932 in MondoRescue for trunk/tools/mknewversion


Ignore:
Timestamp:
Nov 15, 2006, 12:40:15 PM (13 years ago)
Author:
Bruno Cornec
Message:

merge -r913:931 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mknewversion

    r839 r932  
    1616fi
    1717
    18 . $TOOLHOME/common-env
    19 . $TOOLHOME/distro-env
    20 
    2118# We need to get $VER
    2219if [ "$1" = "" ]; then
    23     LAST=`cat ${TOPDIR}/LAST`
     20    echo "Syntax: mknewversion version"
     21    exit -1
    2422else
    25     LAST=$1
     23    VER=$1
    2624    shift
    2725fi
    28 VER=`echo $LAST | cut -d- -f1`
    29 MAJVER=`echo $VER | cut -d. -f1-2`
    30 MINDIMAJVER=`echo $VER | cut -d. -f1`
    31 MINDIMINVER=`echo $VER | cut -d. -f2`
    32 ((MINDIMAJVER=$MINDIMAJVER-1))
    33 MINVER=`echo $VER | cut -d. -f3`
    34 TAG=1
    35 ((MINVER=$MINVER+1))
    36 VER=${MAJVER}.${MINVER}
    37 echo "Changing Version $LAST to ${VER}-${TAG}"
     26
    3827grep -q stable $TOOLHOME/../mondo/VERSION
    3928if [ $? -ne 0 ]; then
     
    4130    exit -1
    4231fi
     32
    4333nb=`svn diff $TOOLHOME/.. | wc -l`
    4434if [ $nb -gt 0 ]; then
    4535    echo "You'll have to check in before changing version"
    46 else
    47     svn copy $SVN_M/branches/stable $SVN_M/branches/${VER}
    48     cd $TOOLHOME/../..
    49     svn co $SVN_M/branches/${VER} ${VER}
    50     cd ${VER}
    51     echo "$TAG" > tools/TAG
    52     for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do
    53         v=${VER}
    54         if [ $p == "mindi" ]; then
    55             v=${MINDIMAJVER}.${MINDIMINVER}.${MINVER}
    56         fi
    57         echo "$v" > $p/VERSION
    58         if [ -f $p/ChangeLog ]; then
    59             grep -q "${v}-${TAG}" $p/ChangeLog
    60             if [ $? -ne 0 ]; then
    61                 echo "You'll have to document in ${p}'s ChangeLog for ${v}-${TAG} related modifications"
    62                 exit -1
    63             fi
    64         fi
    65     done
    66     svn ci -m "Creation of ${VER}-$TAG"
    67     svn up
     36    exit -1
    6837fi
     38
     39svn copy $SVN_M/branches/stable $SVN_M/branches/${VER}
     40cd $TOOLHOME/../..
     41svn co $SVN_M/branches/${VER} ${VER}
     42cd ${VER}
     43
     44for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do
     45    # Reset TAG - This maybe an issue for mindi-busybox only
     46    echo "1" > $p/TAG
     47    v=$VER
     48    echo $p | grep -q mindi
     49    if [ $? -eq 0 ]; then
     50        echo "Please give new $p version for this $VER mondo version ? "
     51        read v
     52    fi
     53    echo "$v" > $p/VERSION
     54done
     55svn ci -m "Creation of mondo ${VER}-$TAG"
     56svn up
Note: See TracChangeset for help on using the changeset viewer.