Last change
on this file since 932 was 932, checked in by Bruno Cornec, 18 years ago |
merge -r913:931 $SVN_M/branches/stable
|
-
Property svn:executable
set to
*
|
File size:
883 bytes
|
Line | |
---|
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`
|
---|
12 | if [ ${prem} == "/" ]; then
|
---|
13 | export TOOLHOME=$dname
|
---|
14 | else
|
---|
15 | export TOOLHOME=${PWD}/$dname
|
---|
16 | fi
|
---|
17 |
|
---|
18 | if [ "$1" = "" ]; then
|
---|
19 | mods="mindi mondo mondo-doc mindi-busybox mindi-kernel"
|
---|
20 | else
|
---|
21 | mods="$*"
|
---|
22 | fi
|
---|
23 |
|
---|
24 | cd $TOOLHOME/..
|
---|
25 | nb=`svn diff | wc -l`
|
---|
26 | if [ $nb -gt 0 ]; then
|
---|
27 | echo "You'll have to check in before updating the TAG"
|
---|
28 | exit -1
|
---|
29 | else
|
---|
30 | for p in $mods; do
|
---|
31 | grep -q "${v}" $p/ChangeLog
|
---|
32 | if [ $? -ne 0 ]; then
|
---|
33 | echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
|
---|
34 | exit -1
|
---|
35 | fi
|
---|
36 | done
|
---|
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
|
---|
46 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.