#!/bin/bash # # Prepare a new delivery of the same version by changing TAG # # $Id$ # # Syntax: mknewtag # dname=`dirname $0` prem=`echo $dname |cut -c1` if [ ${prem} == "/" ]; then export TOOLHOME=$dname else export TOOLHOME=${PWD}/$dname fi . $TOOLHOME/common-env . $TOOLHOME/distro-env # We need to get $VER and $TAG if [ "$1" = "" ]; then LAST=`cat ${TOPDIR}/LAST` else LAST=$1 shift fi VER=`echo $LAST | cut -d- -f1` TAG=`echo $LAST | cut -d- -f2` echo -n "Changing TAG of version $VER value from $TAG to " ((TAG=$TAG+1)) echo "$TAG" nb=`svn diff $TOOLHOME/.. | wc -l` if [ $nb -gt 0 ]; then echo "You'll have to check in before updating the TAG" exit -1 else for p in mindi mondo; do v=`cat $TOOLHOME/../$p/VERSION` grep -q "${v}" $TOOLHOME/../$p/ChangeLog if [ $? -ne 0 ]; then echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications" exit -1 fi done echo "$TAG" > $TOOLHOME/TAG (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up) fi