Last change
on this file since 3082 was 1043, checked in by Bruno Cornec, 18 years ago |
merge -r978:1042 $SVN_M/branches/stable
|
-
Property svn:executable
set to
*
|
File size:
884 bytes
|
Rev | Line | |
---|
[617] | 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 | dname=`dirname $0`
|
---|
| 11 | prem=`echo $dname |cut -c1`
|
---|
[1043] | 12 | if [ _${prem} = _"/" ]; then
|
---|
[617] | 13 | export TOOLHOME=$dname
|
---|
| 14 | else
|
---|
| 15 | export TOOLHOME=${PWD}/$dname
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | if [ "$1" = "" ]; then
|
---|
[932] | 19 | mods="mindi mondo mondo-doc mindi-busybox mindi-kernel"
|
---|
[617] | 20 | else
|
---|
[932] | 21 | mods="$*"
|
---|
[617] | 22 | fi
|
---|
| 23 |
|
---|
[932] | 24 | cd $TOOLHOME/..
|
---|
| 25 | nb=`svn diff | wc -l`
|
---|
[617] | 26 | if [ $nb -gt 0 ]; then
|
---|
[649] | 27 | echo "You'll have to check in before updating the TAG"
|
---|
[782] | 28 | exit -1
|
---|
[617] | 29 | else
|
---|
[932] | 30 | for p in $mods; do
|
---|
| 31 | grep -q "${v}" $p/ChangeLog
|
---|
[649] | 32 | if [ $? -ne 0 ]; then
|
---|
[782] | 33 | echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
|
---|
[649] | 34 | exit -1
|
---|
| 35 | fi
|
---|
| 36 | done
|
---|
[932] | 37 | for p in $mods; do
|
---|
| 38 | TAG=`cat $p/TAG`
|
---|
| 39 | v=`cat $p/VERSION`
|
---|
| 40 | echo -n "Changing TAG of $p-$v value from $TAG to "
|
---|
| 41 | ((TAG=$TAG+1))
|
---|
| 42 | echo "$TAG"
|
---|
| 43 | echo "$TAG" > $p/TAG
|
---|
| 44 | done
|
---|
| 45 | svn ci -m "Automatic update of TAGs" ; svn up
|
---|
[617] | 46 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.