commit: 99e3162cd7527e45cfb439c0307589a85d1d6d9a
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 11 23:35:20 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Aug 11 23:35:20 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=99e3162c
utils/bundleit.sh: simple release bundling utility.
utils/bundleit.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/utils/bundleit.sh b/utils/bundleit.sh
new file mode 100755
index 0000000..727d9d9
--- /dev/null
+++ b/utils/bundleit.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+if [[ ${#@} != "1" ]]; then
+ echo "usage: $0 <tag>"
+fi
+
+tag=$1
+ver=${tag/v}
+git archive --format=tar --prefix=grss-${ver}/ $tag | gzip - >
../grss-${ver}.tar.gz