Author: waldi Date: 2006-04-11 12:48:55 +0000 (Tue, 11 Apr 2006) New Revision: 166 Modified: trunk/scripts/hg2dist.sh Log: /trunk/scripts/hg2dist.sh: Don''t accept spurious releases like 3.0.2-0. Modified: trunk/scripts/hg2dist.sh ==================================================================--- trunk/scripts/hg2dist.sh 2006-04-10 19:14:43 UTC (rev 165) +++ trunk/scripts/hg2dist.sh 2006-04-11 12:48:55 UTC (rev 166) @@ -18,7 +18,7 @@ HASH=$( cd $HGDIR; $HG id | awk ''{ print $1}'') CHANGESET=$( cd $HGDIR; $HG log -r $HASH | head -n 1 | sed -e ''s/ //g;'' | cut -d: -f2) -RELEASE_LG=$( cd $HGDIR; $HG tags | perl -ne ''BEGIN { $done = 0; } /RELEASE-(\S+) +(\d+):/; if ($1 and $2 <= ''$CHANGESET'' and not $done) { print $2,":",$1,"\n"; $done = 1; }'') +RELEASE_LG=$( cd $HGDIR; $HG tags | perl -ne ''BEGIN { $done = 0; } /RELEASE-([0-9.]+) +(\d+):/; if ($1 and $2 <= ''$CHANGESET'' and not $done) { print $2,":",$1,"\n"; $done = 1; }'') REL_CHG=$( echo $RELEASE_LG | cut -d: -f1 ) REL_VER=$( echo $RELEASE_LG | cut -d: -f2 )