Skip to content

Commit 150a631

Browse files
author
Felipe Zimmerle
committed
Adds release.sh script
1 parent 7a410f2 commit 150a631

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

release.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
git clean -xfdi
4+
git submodule foreach --recursive git clean -xfdi
5+
6+
VERSION=`git describe --tags`
7+
DIR_NAME="modsecurity-apache-$VERSION"
8+
TAR_NAME="modsecurity-apache-$VERSION.tar.gz"
9+
10+
MY_DIR=${PWD##*/}
11+
12+
cd ..
13+
tar --transform "s/^$MY_DIR/$DIR_NAME/" -cvzf $TAR_NAME --exclude .git $MY_DIR
14+
15+
sha256sum $TAR_NAME > $TAR_NAME.sha256
16+
gpg --detach-sign -a $TAR_NAME
17+
18+
cd -
19+
echo $TAR_NAME ": done."
20+

0 commit comments

Comments
 (0)