Author: ultrotter Date: 2006-02-23 13:15:45 +0000 (Thu, 23 Feb 2006) New Revision: 49 Modified: trunk/scripts/hg2dist.sh Log: Fix a bug in hg2dist.sh Modified: trunk/scripts/hg2dist.sh ==================================================================--- trunk/scripts/hg2dist.sh 2006-02-23 12:25:37 UTC (rev 48) +++ trunk/scripts/hg2dist.sh 2006-02-23 13:15:45 UTC (rev 49) @@ -17,8 +17,8 @@ CHANGESET=$( (cd $HGDIR; $HG log | head -1 ) | sed -e ''s/ //g;'' | cut -d: -f2) RELEASE_LG=$( (cd $HGDIR; $HG log | grep -B 1 "tag:.*RELEASE" | head -2) | sed -e ''s/ //g'') -REL_VER=$( echo $RELEASE_LG | cut -d: -f2 ) -REL_CHG=$( echo $RELEASE_LG | cut -d- -f2 ) +REL_CHG=$( echo $RELEASE_LG | cut -d: -f2 ) +REL_VER=$( echo $RELEASE_LG | cut -d- -f2 ) if [ $REL_CHG = $CHANGESET ]; then DESTDIR="xen-${REL_VER}"