source: MondoRescue/trunk/tools/mknewtag@ 932

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

merge -r913:931 $SVN_M/branches/stable

  • Property svn:executable set to *
File size: 883 bytes
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
10dname=`dirname $0`
11prem=`echo $dname |cut -c1`
12if [ ${prem} == "/" ]; then
13 export TOOLHOME=$dname
14else
15 export TOOLHOME=${PWD}/$dname
16fi
17
18if [ "$1" = "" ]; then
19 mods="mindi mondo mondo-doc mindi-busybox mindi-kernel"
20else
21 mods="$*"
22fi
23
24cd $TOOLHOME/..
25nb=`svn diff | wc -l`
26if [ $nb -gt 0 ]; then
27 echo "You'll have to check in before updating the TAG"
28 exit -1
29else
30 for p in $mods; do
31 grep -q "${v}" $p/ChangeLog
32 if [ $? -ne 0 ]; then
33 echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
34 exit -1
35 fi
36 done
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
46fi
Note: See TracBrowser for help on using the repository browser.