Skip to content

Commit

Permalink
Adds release.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zimmerle committed Dec 22, 2017
1 parent 7a410f2 commit 150a631
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions release.sh
@@ -0,0 +1,20 @@
#!/bin/bash

git clean -xfdi
git submodule foreach --recursive git clean -xfdi

VERSION=`git describe --tags`
DIR_NAME="modsecurity-apache-$VERSION"
TAR_NAME="modsecurity-apache-$VERSION.tar.gz"

MY_DIR=${PWD##*/}

cd ..
tar --transform "s/^$MY_DIR/$DIR_NAME/" -cvzf $TAR_NAME --exclude .git $MY_DIR

sha256sum $TAR_NAME > $TAR_NAME.sha256
gpg --detach-sign -a $TAR_NAME

cd -
echo $TAR_NAME ": done."

0 comments on commit 150a631

Please sign in to comment.