blob: ff99b230d65ef45f3a51a120b56d26be38d0e388 [file] [log] [blame]
#!/bin/sh
#
# Copyright (c) 2012 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 sed -n '/^ *VERSION=/{s:.*=::;p;q}' \
"$(find "$1" -path '*/bfd/configure')"