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