Commit 1201f8f5 authored by Kenton Varda's avatar Kenton Varda

Fix release script to update version check in bootstrap files.

parent fd1bffc0
...@@ -46,6 +46,13 @@ update_version() { ...@@ -46,6 +46,13 @@ update_version() {
s/^#define CAPNP_VERSION_MICRO [0-9]+\$/#define CAPNP_VERSION_MICRO ${NEW_ARR[2]:-0}/g" \ s/^#define CAPNP_VERSION_MICRO [0-9]+\$/#define CAPNP_VERSION_MICRO ${NEW_ARR[2]:-0}/g" \
c++/src/capnp/common.h c++/src/capnp/common.h
local NEW_COMBINED=$(( ${NEW_ARR[0]} * 1000000 + ${NEW_ARR[1]} * 1000 + ${NEW_ARR[2]:-0 }))
doit sed -i -re "s/^#if CAPNP_VERSION != [0-9]*\$/#if CAPNP_VERSION != $NEW_COMBINED/g" \
c++/src/capnp/c++.capnp.h \
c++/src/capnp/schema.capnp.h \
c++/src/capnp/compiler/lexer.capnp.h \
c++/src/capnp/compiler/grammar.capnp.h
doit git commit -a -m "Set $BRANCH_DESC version to $NEW." doit git commit -a -m "Set $BRANCH_DESC version to $NEW."
} }
......
Markdown is supported
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