Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Felipe Zimmerle
committed
Dec 22, 2017
1 parent
7a410f2
commit 150a631
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." | ||
|