mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-07 06:46:25 +03:00
Adds a simple release script
This commit is contained in:
21
build/release.sh
Executable file
21
build/release.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git clean -xfdi
|
||||||
|
git submodule foreach --recursive git clean -xfdi
|
||||||
|
|
||||||
|
VERSION=`git describe --tags`
|
||||||
|
DIR_NAME="modsecurity-$VERSION"
|
||||||
|
TAR_NAME="modsecurity-$VERSION.tar.gz"
|
||||||
|
|
||||||
|
MY_DIR=${PWD##*/}
|
||||||
|
./build.sh
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
tar --transform "s/^$MY_DIR/$DIR_NAME/" -cvzf $TAR_NAME $MY_DIR
|
||||||
|
|
||||||
|
sha256sum $TAR_NAME > $TAR_NAME.sha256
|
||||||
|
gpg --detach-sign -a $TAR_NAME
|
||||||
|
|
||||||
|
cd -
|
||||||
|
echo $TAR_NAME ": done."
|
||||||
|
|
Reference in New Issue
Block a user