[java-sig-commits] [javapackages] Add simple release-making script

Stanislav Ochotnicky sochotni at fedoraproject.org
Thu Jun 2 12:45:32 UTC 2011


commit 509f71d39e4b8d1da07a1f8712ffdb9e4ff2d0fa
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Thu Jun 2 14:41:30 2011 +0200

    Add simple release-making script

 .gitignore   |    1 +
 make_release |   30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9881fec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.tar.*
diff --git a/make_release b/make_release
new file mode 100755
index 0000000..9b99baf
--- /dev/null
+++ b/make_release
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Copyright (c) 2011 Red Hat, Inc
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Authors: Stanislav Ochotnicky <sochotnicky at redhat.com>
+
+# takes last tag and creates a release from it
+
+last_tag=`git tag | tail -n1`
+
+git archive -v --prefix="javapackages-$last_tag/" $last_tag | xz > \
+    javapackages-$last_tag.tar.xz


More information about the java-sig-commits mailing list