]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Helper script to generate releases
authordlezcano <dlezcano>
Fri, 24 Oct 2008 21:56:50 +0000 (21:56 +0000)
committerdlezcano <dlezcano>
Fri, 24 Oct 2008 21:56:50 +0000 (21:56 +0000)
release.sh [new file with mode: 0644]

diff --git a/release.sh b/release.sh
new file mode 100644 (file)
index 0000000..84a631a
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# This script is for the maintainer to release rpm, dist and 
+# tag with the version found in the configure file the cvs
+# repository
+#
+#!/bin/bash
+
+NAME=$1
+MAJOR=$2
+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