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

Update release script to account for message build changes

parent 12bde9c8
Pipeline #36 failed with stage
in 10 seconds
......@@ -2,18 +2,15 @@
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
# Check repo is clean
git update-index -q --refresh
git diff-files --quiet || { echo "error: ensure git repo has no changes"; exit 1; }
# TODO: regenerate message files to make sure they are up-to-date
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