Last change
on this file since 624 was 614, checked in by bcornec, 18 years ago |
svn diff done before updating TAG
|
-
Property svn:executable
set to
*
|
File size:
818 bytes
|
Rev | Line | |
---|
[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 |
|
---|
| 10 | umask 022
|
---|
| 11 | dname=`dirname $0`
|
---|
| 12 | prem=`echo $dname |cut -c1`
|
---|
| 13 | if [ ${prem} == "/" ]; then
|
---|
| 14 | export TOOLHOME=$dname
|
---|
| 15 | else
|
---|
| 16 | export TOOLHOME=${PWD}/$dname
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 | . $TOOLHOME/common-env
|
---|
| 20 | . $TOOLHOME/distro-env
|
---|
| 21 |
|
---|
| 22 | # We need to get $VER and $TAG
|
---|
| 23 | if [ "$1" = "" ]; then
|
---|
| 24 | LAST=`cat ${TOPDIR}/LAST`
|
---|
| 25 | else
|
---|
| 26 | LAST=$1
|
---|
| 27 | shift
|
---|
| 28 | fi
|
---|
| 29 | VER=`echo $LAST | cut -d- -f1`
|
---|
| 30 |
|
---|
| 31 | TAG=`echo $LAST | cut -d- -f2`
|
---|
| 32 | echo -n "Changing TAG of version $VER value from $TAG to "
|
---|
| 33 | ((TAG=$TAG+1))
|
---|
| 34 | echo "$TAG"
|
---|
| 35 | nb=`svn diff $TOOLHOME/.. | wc -l`
|
---|
| 36 | if [ $nb -gt 0 ]; then
|
---|
[614] | 37 | echo "You'll have to check in order before updating the TAG"
|
---|
| 38 | echo "$TAG" > $TOOLHOME/TAG
|
---|
[612] | 39 | else
|
---|
[614] | 40 | echo "$TAG" > $TOOLHOME/TAG
|
---|
[613] | 41 | (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up)
|
---|
[612] | 42 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.