qsv: align surface width/height to 16.
[ffmpeg.git] / avbuild / libversion.sh
1 #!/bin/sh
2
3 toupper(){
4     echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
5 }
6
7 name=lib$1
8 ucname=$(toupper ${name})
9 file=$2
10
11 eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
12 eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
13 eval echo "${name}_VERSION=\$${ucname}_VERSION"
14 eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
15 eval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"