Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=222b1811d9acd6a0c2ef91f518b4749d99f386a0

commit 222b1811d9acd6a0c2ef91f518b4749d99f386a0
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Thu Sep 3 14:01:46 2009 +0200

tools/genpkgdbs: automatically figure out the last stable tag

diff --git a/docs/release-howto.txt b/docs/release-howto.txt
index 0a91f4a..39b2ab9 100644
--- a/docs/release-howto.txt
+++ b/docs/release-howto.txt
@@ -41,8 +41,9 @@ $ cp -av frugalware-current frugalware-0.5

== Updating the -current tree

-Now one have two tree. All what one should do in -current is to bump
-`--from-tag` version to 0.5 in tools/genpkgs.
+Now one has two trees. All what one should do in -current is to
+regenerate ChangeLog.txt (copy & paste the command from
+`tools/genpkgdbs`).

== Updating the -stable tree

diff --git a/tools/genpkgdbs b/tools/genpkgdbs
index a99e9fa..f396be3 100755
--- a/tools/genpkgdbs
+++ b/tools/genpkgdbs
@@ -20,7 +20,8 @@ cd `dirname $0`/..

# Changelog
echo -n "generating ChangeLog.txt..."
-git log 1.0^.. | iconv -c -f $(git config i18n.logOutputEncoding) -t utf8 
>ChangeLog.txt
+stable=`git tag -l|grep '^[0-9]\+\.[0-9]$'|sed -n '$ p'`
+git log $stable^.. | iconv -c -f $(git config i18n.logOutputEncoding) -t utf8 
>ChangeLog.txt
echo " done"

# AUTHORS
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to