]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Added a helper to generate the Changelog between two releases
authordlezcano <dlezcano>
Tue, 28 Oct 2008 22:06:58 +0000 (22:06 +0000)
committerdlezcano <dlezcano>
Tue, 28 Oct 2008 22:06:58 +0000 (22:06 +0000)
release.sh

index 84a631a69b42b2896d739b24c447e246fdb31eeb..6100d78cc128c4551c27c7397e106b318d36a54b 100644 (file)
@@ -11,11 +11,24 @@ MINOR=$3
 MICRO=$4
 VERSION=$MAJOR\_$MINOR\_$MICRO
 TAG=$NAME\_$VERSION
-echo
-echo -n "Ready to tag $TAG [Y/n] "
-read
 
-test -z "$REPLY" || echo $REPLY | egrep "y|Y|Yes" && \
-    cvs tag $TAG
-test ! -z "$REPLY" && echo "Aborted"
-exit 0
\ No newline at end of file
+release_tag() {
+    echo
+    echo -n "Ready to tag $TAG [Y/n] "
+    read
+
+    test -z "$REPLY" || echo $REPLY | egrep "y|Y|Yes" && \
+       cvs tag $TAG
+    test ! -z "$REPLY" && echo "Aborted"
+}
+
+release_changelog() {
+    echo "Generating ChangeLog"
+    echo -n "Please give the previous tag name: "
+    read 
+    cvs2cl --delta $REPLY:$TAG --stdout
+}
+
+release_tag
+
+release_changelog
\ No newline at end of file