Last change
on this file since 3378 was 1490, checked in by Bruno Cornec, 17 years ago |
Stricter POSIX conformance for all shell scripts (== replaced by = in compare)
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # Prepare a delivery of a new version by changing VERSION/TAG from stable
|
---|
4 | #
|
---|
5 | # $Id$
|
---|
6 | #
|
---|
7 | # Syntax: mknewversion
|
---|
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 | # We need to get $VER
|
---|
19 | if [ "$1" = "" ]; then
|
---|
20 | echo "Syntax: mknewversion version"
|
---|
21 | exit -1
|
---|
22 | else
|
---|
23 | VER=$1
|
---|
24 | shift
|
---|
25 | fi
|
---|
26 |
|
---|
27 | grep -q stable $TOOLHOME/../mondo/VERSION
|
---|
28 | if [ $? -ne 0 ]; then
|
---|
29 | echo "A new version can only be made from stable"
|
---|
30 | exit -1
|
---|
31 | fi
|
---|
32 |
|
---|
33 | nb=`svn diff $TOOLHOME/.. | wc -l`
|
---|
34 | if [ $nb -gt 0 ]; then
|
---|
35 | echo "You'll have to check in before changing version"
|
---|
36 | exit -1
|
---|
37 | fi
|
---|
38 |
|
---|
39 | svn copy $SVN_M/branches/stable $SVN_M/branches/${VER}
|
---|
40 | cd $TOOLHOME/../..
|
---|
41 | svn co $SVN_M/branches/${VER} ${VER}
|
---|
42 | cd ${VER}
|
---|
43 |
|
---|
44 | for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do
|
---|
45 | # Reset TAG - This maybe an issue for mindi-busybox only
|
---|
46 | echo "1" > $p/TAG
|
---|
47 | v=$VER
|
---|
48 | echo $p | grep -q mindi
|
---|
49 | if [ $? -eq 0 ]; then
|
---|
50 | echo "Please give new $p version for this $VER mondo version ? "
|
---|
51 | read v
|
---|
52 | fi
|
---|
53 | echo "$v" > $p/VERSION
|
---|
54 | done
|
---|
55 | svn ci -m "Creation of mondo ${VER}-$TAG"
|
---|
56 | svn up
|
---|
Note:
See
TracBrowser
for help on using the repository browser.