Commit 5df78948 authored by Kenton Varda's avatar Kenton Varda

Fixes #52

parent 0407760c
......@@ -6,7 +6,7 @@
#include <capnp/generated-header-support.h>
#if CAPNP_VERSION != 4000
#if CAPNP_VERSION != 5000
#error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
#endif
......
......@@ -6,7 +6,7 @@
#include <capnp/generated-header-support.h>
#if CAPNP_VERSION != 4000
#if CAPNP_VERSION != 5000
#error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
#endif
......
......@@ -48,10 +48,7 @@ update_version() {
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
src/*/*.capnp.h src/*/*/*.capnp.h
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