]> git.proxmox.com Git - mirror_lxc.git/blob - release.sh
Ignore files copied by libtool
[mirror_lxc.git] / release.sh
1 #
2 # This script is for the maintainer to release rpm, dist and
3 # tag with the version found in the configure file the cvs
4 # repository
5 #
6 #!/bin/bash
7
8 NAME=$1
9 MAJOR=$2
10 MINOR=$3
11 MICRO=$4
12 VERSION=$MAJOR\_$MINOR\_$MICRO
13 TAG=$NAME\_$VERSION
14
15 release_tag() {
16 echo
17 echo -n "Ready to tag $TAG [Y/n] "
18 read
19
20 test -z "$REPLY" || echo $REPLY | egrep "y|Y|Yes" && \
21 cvs tag $TAG
22 test ! -z "$REPLY" && echo "Aborted"
23 }
24
25 release_changelog() {
26 echo "Generating ChangeLog"
27 echo -n "Please give the previous tag name: "
28 read
29 cvs2cl --delta $REPLY:$TAG --stdout > ChangeLog.diff
30 }
31
32 release_tag
33
34 release_changelog