Last change
on this file since 887 was 825, checked in by Bruno Cornec, 19 years ago |
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
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 | . $TOOLHOME/common-env
|
---|
19 | . $TOOLHOME/distro-env
|
---|
20 |
|
---|
21 | # We need to get $VER and $TAG
|
---|
22 | if [ "$1" = "" ]; then
|
---|
23 | LAST=`cat ${TOPDIR}/LAST`
|
---|
24 | else
|
---|
25 | LAST=$1
|
---|
26 | shift
|
---|
27 | fi
|
---|
28 | VER=`echo $LAST | cut -d- -f1`
|
---|
29 |
|
---|
30 | TAG=`echo $LAST | cut -d- -f2`
|
---|
31 | echo -n "Changing TAG of version $VER value from $TAG to "
|
---|
32 | ((TAG=$TAG+1))
|
---|
33 | echo "$TAG"
|
---|
34 | nb=`svn diff $TOOLHOME/.. | wc -l`
|
---|
35 | if [ $nb -gt 0 ]; then
|
---|
36 | echo "You'll have to check in before updating the TAG"
|
---|
37 | exit -1
|
---|
38 | else
|
---|
39 | for p in mindi mondo mindi-busybox mindi-kernel; do
|
---|
40 | v=`cat $TOOLHOME/../$p/VERSION`
|
---|
41 | grep -q "${v}" $TOOLHOME/../$p/ChangeLog
|
---|
42 | if [ $? -ne 0 ]; then
|
---|
43 | echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
|
---|
44 | exit -1
|
---|
45 | fi
|
---|
46 | done
|
---|
47 | echo "$TAG" > $TOOLHOME/TAG
|
---|
48 | (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up)
|
---|
49 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.