lavf/avio: Print the https warning also for missing tls protocol.
[ffmpeg.git] / ffbuild / libversion.sh
1 toupper(){
2     echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
3 }
4
5 name=lib$1
6 ucname=$(toupper ${name})
7 file=$2
8
9 eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
10 eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
11 eval echo "${name}_VERSION=\$${ucname}_VERSION"
12 eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
13 eval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"