blob: fee1da2141083e330b30ec7252c2fbcc76e7b41b [file] [log] [blame]
#!/bin/sh
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
exec gawk '
match($0, /m4_define\(\[qmi_(major|minor|micro)_version\], \[([0-9]+)\]\)/,
matches) { version[matches[1]] = matches[2] }
END { print version["major"] "." version["minor"] "." version["micro"] }' \
"$1/configure.ac"