#!/bin/bash | |
# | |
# Copyright 2024 The ChromiumOS Authors | |
# 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. | |
cd "$1" || exit | |
# Match the version number in meson.build. | |
grep -E "\s+version\s*:\s*'[0-9]+\.[0-9]+\.[0-9]+',$" meson.build | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" |