blob: 0dd5b9d95f403aca3d5143c27350b34219d53935 [file] [log] [blame]
#!/bin/sh
#
# Copyright 2021 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.
#
# This script is given one argument: the base of the source directory of
# the package, and it prints a string on stdout with the numerical version
# number for said repo.
exec gawk -F, '$1 ~ /^AC_INIT/ { print gensub(/[][, ]/, "", "g", $2); exit }' \
"$1/configure.ac"