Last change
on this file since 3868 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:
1.2 KB
|
Rev | Line | |
---|
[651] | 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`
|
---|
[1042] | 12 | if [ _${prem} = _"/" ]; then
|
---|
[651] | 13 | export TOOLHOME=$dname
|
---|
| 14 | else
|
---|
| 15 | export TOOLHOME=${PWD}/$dname
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | # We need to get $VER
|
---|
| 19 | if [ "$1" = "" ]; then
|
---|
[924] | 20 | echo "Syntax: mknewversion version"
|
---|
| 21 | exit -1
|
---|
[651] | 22 | else
|
---|
[924] | 23 | VER=$1
|
---|
[651] | 24 | shift
|
---|
| 25 | fi
|
---|
[924] | 26 |
|
---|
[651] | 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
|
---|
[924] | 32 |
|
---|
[651] | 33 | nb=`svn diff $TOOLHOME/.. | wc -l`
|
---|
| 34 | if [ $nb -gt 0 ]; then
|
---|
| 35 | echo "You'll have to check in before changing version"
|
---|
[924] | 36 | exit -1
|
---|
[651] | 37 | fi
|
---|
[924] | 38 |
|
---|
[1020] | 39 | echo "Copying the stable version to ${VER}"
|
---|
| 40 | svn copy $SVN_M/branches/stable $SVN_M/branches/${VER} -m "Creation of mondo ${VER} from stable"
|
---|
[924] | 41 | cd $TOOLHOME/../..
|
---|
| 42 | svn co $SVN_M/branches/${VER} ${VER}
|
---|
| 43 | cd ${VER}
|
---|
| 44 |
|
---|
| 45 | for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do
|
---|
| 46 | # Reset TAG - This maybe an issue for mindi-busybox only
|
---|
| 47 | echo "1" > $p/TAG
|
---|
| 48 | v=$VER
|
---|
| 49 | echo $p | grep -q mindi
|
---|
| 50 | if [ $? -eq 0 ]; then
|
---|
| 51 | echo "Please give new $p version for this $VER mondo version ? "
|
---|
| 52 | read v
|
---|
| 53 | fi
|
---|
| 54 | echo "$v" > $p/VERSION
|
---|
| 55 | done
|
---|
[1020] | 56 | svn ci -m "VERSION and TAG update"
|
---|
[924] | 57 | svn up
|
---|
Note:
See
TracBrowser
for help on using the repository browser.