Skip to content

Commit 04f7009

Browse files
author
Felipe Zimmerle
committed
Adds a simple release script
1 parent cca3642 commit 04f7009

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build/release.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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-$VERSION"
8+
TAR_NAME="modsecurity-$VERSION.tar.gz"
9+
10+
MY_DIR=${PWD##*/}
11+
./build.sh
12+
13+
cd ..
14+
tar --transform "s/^$MY_DIR/$DIR_NAME/" -cvzf $TAR_NAME $MY_DIR
15+
16+
sha256sum $TAR_NAME > $TAR_NAME.sha256
17+
gpg --detach-sign -a $TAR_NAME
18+
19+
cd -
20+
echo $TAR_NAME ": done."
21+

0 commit comments

Comments
 (0)