mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
4ac5980298
commit
52d46a3a2c
1 changed files with 28 additions and 0 deletions
28
release.sh
Executable file
28
release.sh
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# nothing to see here, just a utility i use to create new releases ^_^
|
||||||
|
|
||||||
|
CURRENT_VERSION=$(cat daemon/core/version.go | grep Version | cut -d '"' -f 2)
|
||||||
|
TO_UPDATE=(
|
||||||
|
daemon/core/version.go
|
||||||
|
ui/version.py
|
||||||
|
)
|
||||||
|
|
||||||
|
echo -n "Current version is $CURRENT_VERSION, select new version: "
|
||||||
|
read NEW_VERSION
|
||||||
|
echo "Creating version $NEW_VERSION ...\n"
|
||||||
|
|
||||||
|
for file in "${TO_UPDATE[@]}"
|
||||||
|
do
|
||||||
|
echo "Patching $file ..."
|
||||||
|
sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g" $file
|
||||||
|
git add $file
|
||||||
|
done
|
||||||
|
|
||||||
|
git commit -m "Releasing v$NEW_VERSION"
|
||||||
|
git push
|
||||||
|
|
||||||
|
git tag -a v$NEW_VERSION -m "Release v$NEW_VERSION"
|
||||||
|
git push origin v$NEW_VERSION
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "All done, v$NEW_VERSION released ^_^"
|
Loading…
Add table
Reference in a new issue