summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-20 17:07:55 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-20 17:07:55 -0400
commitbfbaa2bd29524b295b6cedca553cd2bec69db865 (patch)
tree5564158446612506e51ab32e6bf104d87db6ef0a /scripts
parentae923bea4b3fdb4a1f40f2c0e2942b5edcecb064 (diff)
downloadsssd-bfbaa2bd29524b295b6cedca553cd2bec69db865.tar.gz
sssd-bfbaa2bd29524b295b6cedca553cd2bec69db865.tar.bz2
sssd-bfbaa2bd29524b295b6cedca553cd2bec69db865.zip
Add a release script to help building tarballs
It needs a gpg key for signing the tarball.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100755
index 00000000..e49bd8de
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+version=`grep "^AC_INIT" server/configure.ac | tr -d "AC_INIT(sssd, " | tr -d ")"`
+v_=`echo ${version} | tr "." "_"`
+
+git archive --format=tar --prefix=sssd-${version}/ sssd-${v_} | gzip > sssd-${version}.tar.gz
+gpg --detach-sign --armor sssd-${version}.tar.gz
+