Commit bd08acaf authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Add release script

parent 666c0115
......@@ -2,6 +2,7 @@
*.d
*.so
*~
*.tar.gz
s-messages
src/messages.cc
src/messages.h
#!/bin/sh
set -e
MESSAGES="s-messages src/messages.h src/messages.cc"
RELEASE="$1"
[ -z "$RELEASE" ] && { echo "usage: $0 X.Y.Z"; exit 1; }
make clean
make src/messages.h src/messages.cc
git add -f $MESSAGES
git commit -m "Release $RELEASE"
git tag v"$RELEASE"
git archive --prefix=kea-hook-runscript-"$RELEASE"/ -o kea-hook-runscript-"$RELEASE".tar.gz v"$RELEASE"
git rm $MESSAGES
git commit -m "Go back to development after $RELEASE release"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment