Last change
on this file since 3262 was 1042, checked in by Bruno Cornec, 18 years ago |
Syntax review (== suppresse for stricter POSIX conformance with =)
|
-
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`
|
---|
[1042] | 12 | if [ _${prem} = _"/" ]; then
|
---|
[617] | 13 | export TOOLHOME=$dname
|
---|
| 14 | else
|
---|
| 15 | export TOOLHOME=${PWD}/$dname
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | if [ "$1" = "" ]; then
|
---|
[924] | 19 | mods="mindi mondo mondo-doc mindi-busybox mindi-kernel"
|
---|
[617] | 20 | else
|
---|
[924] | 21 | mods="$*"
|
---|
[617] | 22 | fi
|
---|
| 23 |
|
---|
[924] | 24 | cd $TOOLHOME/..
|
---|
| 25 | nb=`svn diff | wc -l`
|
---|
[617] | 26 | if [ $nb -gt 0 ]; then
|
---|
[633] | 27 | echo "You'll have to check in before updating the TAG"
|
---|
[774] | 28 | exit -1
|
---|
[617] | 29 | else
|
---|
[924] | 30 | for p in $mods; do
|
---|
| 31 | grep -q "${v}" $p/ChangeLog
|
---|
[633] | 32 | if [ $? -ne 0 ]; then
|
---|
[774] | 33 | echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
|
---|
[633] | 34 | exit -1
|
---|
| 35 | fi
|
---|
| 36 | done
|
---|
[924] | 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.