source: MondoRescue/branches/2.0.8/tools/mknewtag@ 613

Last change on this file since 613 was 613, checked in by bcornec, 18 years ago

update svn in mknewtag

  • Property svn:executable set to *
File size: 785 bytes
RevLine 
[612]1#!/bin/bash
2#
3# Prepare a new delivery of the same version by changing TAG
4#
5# $Id$
6#
7# Syntax: mknewtag
8#
9
10umask 022
11dname=`dirname $0`
12prem=`echo $dname |cut -c1`
13if [ ${prem} == "/" ]; then
14 export TOOLHOME=$dname
15else
16 export TOOLHOME=${PWD}/$dname
17fi
18
19. $TOOLHOME/common-env
20. $TOOLHOME/distro-env
21
22# We need to get $VER and $TAG
23if [ "$1" = "" ]; then
24 LAST=`cat ${TOPDIR}/LAST`
25else
26 LAST=$1
27 shift
28fi
29VER=`echo $LAST | cut -d- -f1`
30
31TAG=`echo $LAST | cut -d- -f2`
32echo -n "Changing TAG of version $VER value from $TAG to "
33((TAG=$TAG+1))
34echo "$TAG"
35echo "$TAG" > $TOOLHOME/TAG
36nb=`svn diff $TOOLHOME/.. | wc -l`
37if [ $nb -gt 0 ]; then
38 echo "You'll have to check in order to to update the TAG"
39else
[613]40 (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up)
[612]41fi
Note: See TracBrowser for help on using the repository browser.