aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-08-11 19:35:20 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-08-11 19:35:20 -0400
commit99e3162cd7527e45cfb439c0307589a85d1d6d9a (patch)
tree543fdbb81da0e95376a74f2a6ecf29a1a7b42b61
parentRemove CONST.namervers[]. To be provided by grs repo. (diff)
downloadgrss-99e3162cd7527e45cfb439c0307589a85d1d6d9a.tar.gz
grss-99e3162cd7527e45cfb439c0307589a85d1d6d9a.tar.bz2
grss-99e3162cd7527e45cfb439c0307589a85d1d6d9a.zip
utils/bundleit.sh: simple release bundling utility.
-rwxr-xr-xutils/bundleit.sh9
1 files changed, 9 insertions, 0 deletions
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