mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-26 20:50:34 +00:00
3b0fb00990
Signed-off-by: cyberbox <468042667@qq.com> Change-Id: I63cc2a8c9ff6197c67d6b6b47c124882ad942a22
18 lines
594 B
Bash
18 lines
594 B
Bash
toupper(){
|
|
echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
}
|
|
|
|
name=lib$1
|
|
ucname=$(toupper ${name})
|
|
file=$2
|
|
file2=$3
|
|
|
|
eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
|
|
if [ -f "$file2" ]; then
|
|
eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file2")
|
|
fi
|
|
eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
|
|
eval echo "${name}_VERSION=\$${ucname}_VERSION"
|
|
eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
|
|
eval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"
|