Commit 7cbd4344 authored by Kenton Varda's avatar Kenton Varda

Fix release.sh.

parent 69073f03
...@@ -20,7 +20,7 @@ doit() { ...@@ -20,7 +20,7 @@ doit() {
} }
get_version() { get_version() {
local VERSION=$(grep AC_INIT c++/configure.ac | sed -e 's/^[^]]*],\[\([^]]*\)].*$/\1/g') local VERSION=$(grep '^AC_INIT' c++/configure.ac | sed -e 's/^[^]]*],\[\([^]]*\)].*$/\1/g')
if [[ ! "$VERSION" =~ $1 ]]; then if [[ ! "$VERSION" =~ $1 ]]; then
echo "Couldn't parse version: $VERSION" >&2 echo "Couldn't parse version: $VERSION" >&2
exit 1 exit 1
......
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