source: MondoRescue/trunk/tools/mknewversion@ 932

Last change on this file since 932 was 932, checked in by Bruno Cornec, 17 years ago

merge -r913:931 $SVN_M/branches/stable

  • 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
10dname=`dirname $0`
11prem=`echo $dname |cut -c1`
12if [ ${prem} == "/" ]; then
13 export TOOLHOME=$dname
14else
15 export TOOLHOME=${PWD}/$dname
16fi
17
18# We need to get $VER
19if [ "$1" = "" ]; then
20 echo "Syntax: mknewversion version"
21 exit -1
22else
23 VER=$1
24 shift
25fi
26
27grep -q stable $TOOLHOME/../mondo/VERSION
28if [ $? -ne 0 ]; then
29 echo "A new version can only be made from stable"
30 exit -1
31fi
32
33nb=`svn diff $TOOLHOME/.. | wc -l`
34if [ $nb -gt 0 ]; then
35 echo "You'll have to check in before changing version"
36 exit -1
37fi
38
39svn copy $SVN_M/branches/stable $SVN_M/branches/${VER}
40cd $TOOLHOME/../..
41svn co $SVN_M/branches/${VER} ${VER}
42cd ${VER}
43
44for 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
54done
55svn ci -m "Creation of mondo ${VER}-$TAG"
56svn up
Note: See TracBrowser for help on using the repository browser.