ia64/xen-unstable

changeset 10145:0dabd651b856

[IA64] Add -rc support to sparse-merge

Signed-off-by: Aron Griffis <aron@hp.com>
author awilliam@xenbuild.aw
date Tue May 23 15:10:27 2006 -0600 (2006-05-23)
parents 953753661a3b
children 83c0449db67a
files xen/arch/ia64/tools/sparse-merge
line diff
     1.1 --- a/xen/arch/ia64/tools/sparse-merge	Tue May 23 15:09:21 2006 -0600
     1.2 +++ b/xen/arch/ia64/tools/sparse-merge	Tue May 23 15:10:27 2006 -0600
     1.3 @@ -33,9 +33,17 @@ fi
     1.4  cd $LINUXPATH || exit 1
     1.5  OLDCSET=$(hg parents | awk '/^changeset:/{print($2)}' | cut -f 1 -d :)
     1.6  for t in $OLDTAG $NEWTAG; do
     1.7 +    [[ $t == *.* ]] || continue
     1.8      if ! hg tags | cut -f1 -d' ' | grep -Fx $t; then
     1.9  	echo "Tag $t not found, ketching up"
    1.10 -	hg up -C ${t%.*} || exit 1
    1.11 +	if [[ $t == *-* ]]; then
    1.12 +	    # rc/pre/git versions start at the previous stable release
    1.13 +	    micro=${t%%-*}; micro=${micro##*.}
    1.14 +	    stable=${t%%-*}; stable=${stable%.*}.$((micro-1))
    1.15 +	    hg up -C $stable
    1.16 +	else
    1.17 +	    hg up -C ${t%.*} || exit 1
    1.18 +	fi
    1.19  	ketchup ${t#v} || exit 1
    1.20  	hg addremove
    1.21  	hg ci -m $t