2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2019 Intel Corporation
6 abi_version_file="./ABI_VERSION"
7 update_path="lib drivers"
9 # check ABI version format string
11 echo $1 | grep -q -e "^[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}$"
16 >&2 echo "Please provide ABI version"
20 # check version string format
21 if ! check_abi_version $abi_version ; then
23 >&2 echo "ABI version must be formatted as MAJOR.MINOR version"
34 # assign all other arguments as update paths
38 echo "New ABI version:" $abi_version
39 echo "ABI_VERSION path:" $abi_version_file
40 echo "Path to update:" $update_path
42 echo $abi_version > $abi_version_file
44 find $update_path -name version.map -exec \
45 devtools/update_version_map_abi.py {} \
46 $abi_version \; -print