aarch64: vp9mc: Simplify the extmla macro parameters
[libav.git] / avbuild / libversion.sh
CommitLineData
edb43487
DB
1#!/bin/sh
2
3toupper(){
4 echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
5}
6
7name=lib$1
8ucname=$(toupper ${name})
9file=$2
10
11eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
12eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
13eval echo "${name}_VERSION=\$${ucname}_VERSION"
14eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
15eval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"