summaryrefslogtreecommitdiff
path: root/scripts/release.sh
blob: e49bd8de404caa8ba6a4d7ace82495b067c60d7a (plain)
1
2
3
4
5
6
7
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